• Sam Lantinga's avatar
    Date: Tue, 9 May 2006 23:01:49 -0400 · 24dd2620
    Sam Lantinga authored
    From: Mike Frysinger
    Subject: [SDL] [patch] fall back to using MAP_PRIVATE with mmap() in fbcon dri
    
    trying to use MAP_SHARED with mmap() on uClinux (aka non-mmu) hosts nowadays
    will simply fail since the kernel disallows it ... falling back to using
    MAP_PRIVATE on these hosts is acceptable ... as such, ive attached a patch
    for the fbcon driver that will fall back to using MAP_PRIVATE if mmap() with
    MAP_SHARED failed
    
    going by a grep of MAP_SHARED, the only other drivers that utilize this flag
    are video/wscons, video/ps2gs, and sound/dmaaudio ... i dont think these
    would appear on a non-mmu host so the patch i wrote is restricted to just
    SDL_fbvideo.c ...
    -mike
    
    --HG--
    extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401757
    24dd2620
Name
Last commit
Last update
..
3dfx_mmio.h Loading commit data...
3dfx_regs.h Loading commit data...
SDL_fb3dfx.c Loading commit data...
SDL_fb3dfx.h Loading commit data...
SDL_fbelo.c Loading commit data...
SDL_fbelo.h Loading commit data...
SDL_fbevents.c Loading commit data...
SDL_fbevents_c.h Loading commit data...
SDL_fbkeys.h Loading commit data...
SDL_fbmatrox.c Loading commit data...
SDL_fbmatrox.h Loading commit data...
SDL_fbmouse.c Loading commit data...
SDL_fbmouse_c.h Loading commit data...
SDL_fbriva.c Loading commit data...
SDL_fbriva.h Loading commit data...
SDL_fbvideo.c Loading commit data...
SDL_fbvideo.h Loading commit data...
matrox_mmio.h Loading commit data...
matrox_regs.h Loading commit data...
riva_mmio.h Loading commit data...
riva_regs.h Loading commit data...