summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2010-06-06 03:06:44 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-06-08 16:28:53 +0200
commit7c3527a846b81cd4e169821b905959aa71392727 (patch)
tree872a80a29b6204923085f7b191cd9efe5dbceeb7
parent19e9045f4a6acafd2d8fe5e02b7c3668a1dc6056 (diff)
xorg-server: add fix for lemote in XAA mode
-rw-r--r--package/xorg-server/patches/patch-fb_fb_h13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/xorg-server/patches/patch-fb_fb_h b/package/xorg-server/patches/patch-fb_fb_h
new file mode 100644
index 000000000..82a814c7d
--- /dev/null
+++ b/package/xorg-server/patches/patch-fb_fb_h
@@ -0,0 +1,13 @@
+ Fix for xf86-video-siliconmotion in 16bpp with XAA, see:
+ http://groups.google.com/group/loongson-dev/browse_thread/thread/570549e3d7894fef/5f04b3d9370adfd2
+--- xorg-server-1.7.6.orig/fb/fb.h 2010-03-12 05:38:21.000000000 +0100
++++ xorg-server-1.7.6/fb/fb.h 2010-06-03 15:34:35.903809488 +0200
+@@ -75,7 +75,7 @@
+ #define FBPREFIX(x) fb##x
+ #define WRITE(ptr, val) (*(ptr) = (val))
+ #define READ(ptr) (*(ptr))
+-#define MEMCPY_WRAPPED(dst, src, size) memcpy((dst), (src), (size))
++#define MEMCPY_WRAPPED(dst, src, size) memmove((dst), (src), (size))
+ #define MEMSET_WRAPPED(dst, val, size) memset((dst), (val), (size))
+
+ #endif