Index: distinfo =================================================================== RCS file: distinfo diff -N distinfo --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ distinfo 6 Apr 2007 15:11:43 -0000 @@ -0,0 +1 @@ +SHA1 (patch-aa) = 2bb3615ac10ab7c88bb2cb33d1e75f85733f7e36 Index: patches/patch-aa =================================================================== RCS file: patches/patch-aa diff -N patches/patch-aa --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-aa 6 Apr 2007 15:10:30 -0000 @@ -0,0 +1,44 @@ +--- programs/Xserver/hw/xfree86/os-support/bsd/ppc_video.c.orig 2005-07-03 16:01:30.000000000 +0900 ++++ programs/Xserver/hw/xfree86/os-support/bsd/ppc_video.c 2007-04-07 00:09:19.000000000 +0900 +@@ -48,6 +48,8 @@ + /* Video Memory Mapping section */ + /***************************************************************************/ + ++static int devMemFd = -1; ++ + #ifndef __OpenBSD__ + #define DEV_MEM "/dev/mem" + #else +@@ -57,6 +59,8 @@ + static pointer ppcMapVidMem(int, unsigned long, unsigned long, int flags); + static void ppcUnmapVidMem(int, pointer, unsigned long); + ++#define DEBUG ++ + void + xf86OSInitVidMem(VidMemInfoPtr pVidMem) + { +@@ -79,10 +83,23 @@ + Base, Size, fd); + #endif + ++#if 0 + base = mmap(0, Size, + (flags & VIDMEM_READONLY) ? + PROT_READ : (PROT_READ | PROT_WRITE), + MAP_SHARED, fd, Base); ++#endif ++ if (devMemFd < 0) ++ if ((devMemFd = open(DEV_MEM, O_RDWR)) < 0) ++ { ++ FatalError("ppcMapVidMem: failed to open %s (%s)\n", ++ "/dev/mem", strerror(errno)); ++ } ++ ++ base = mmap(0, Size, PROT_READ | PROT_WRITE, ++ /*(flags & VIDMEM_READONLY) ? ++ PROT_READ : (PROT_READ | PROT_WRITE),*/ ++ MAP_SHARED, devMemFd, Base); + if (base == MAP_FAILED) + FatalError("%s: could not mmap screen [s=%x,a=%x] (%s)", + "xf86MapVidMem", Size, Base, strerror(errno));