Open /dev/mem with O_SYNC if mtrr is not available or else mmio wont work
properly. git-svn-id: svn://svn.openwrt.org/openwrt/packages@14288 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
5958744506
commit
d34d6c4c75
13
Xorg/xorg/xserver/xorg-server/patches/010-sync-dev-mem.patch
Normal file
13
Xorg/xorg/xserver/xorg-server/patches/010-sync-dev-mem.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/hw/xfree86/os-support/linux/lnx_video.c b/hw/xfree86/os-support/linux/lnx_video.c
|
||||
index 1bd2d57..0ac829c 100644
|
||||
--- a/hw/xfree86/os-support/linux/lnx_video.c
|
||||
+++ b/hw/xfree86/os-support/linux/lnx_video.c
|
||||
@@ -468,7 +468,7 @@ mapVidMem(int ScreenNum, unsigned long Base, unsigned long Size, int flags)
|
||||
mapflags |= MAP_NONCACHED;
|
||||
#endif
|
||||
|
||||
-#if 0
|
||||
+#ifndef HAVE_MTRR
|
||||
/* this will disappear when people upgrade their kernels */
|
||||
fd = open(DEV_MEM,
|
||||
((flags & VIDMEM_READONLY) ? O_RDONLY : O_RDWR) | O_SYNC);
|
Loading…
x
Reference in New Issue
Block a user