SPS2 - Direct PS2 Access Environment - Forums


Summary |  Forums |  Bugs |  News |  Source |  Files | 

Discussion Forums: Developers

Admin

Message: 42653
BY: mrm
DATE: 2004-Apr-13 19:32
SUBJECT: mmap to allocate mem

I found something in SDL 1.2 and I am quite curious about what you think of it:

SDL_gsvideo.c:301: memory_fd = open(PS2_DEV_MEM, O_RDWR, 0);

SDL_gsyuv:195: hwdata->dma_mem = mmap(0, hwdata->dma_len, PROT_READ|PROT_WRITE,
SDL_gsyuv:196: MAP_SHARED, memory_fd, map_offset);


They simply map-in the memory using the ps2mem device and then use it. Wouldn't this eliminate the 4k-block inconvenience, or am I missing something...

Mr.M


 

Thread View

Thread Author Date
mmap to allocate memmrm2004-Apr-13 19:32
      RE: mmap to allocate memsauce2004-Apr-13 20:46
            RE: mmap to allocate memmrm2004-Apr-14 04:02
                  RE: mmap to allocate memmrm2004-Apr-14 15:27
                        > 256k texturessauce2004-Apr-14 20:55
                              RE: > 256k texturesmrm2004-Apr-15 14:46
                                    RE: > 256k texturessauce2004-Apr-15 15:14
                                          RE: > 256k texturessauce2004-Apr-15 15:16
                                                RE: > 256k textures + IPU cscmrm2004-Apr-16 17:06
                                                RE: > 256k texturesmrm2004-Apr-17 16:33
                                                      RE: > 256k texturesldesnogu2004-Apr-17 17:47
                                                            RE: > 256k texturesmrm2004-Apr-18 08:06
                                                                  RE: page layouts can be found on the last...sparky2004-Apr-18 08:53

 

Post a followup to this message

You could post if you were [logged in]