patch-fb_fb_h 630 B

12345678910111213
  1. Fix for xf86-video-siliconmotion in 16bpp with XAA, see:
  2. http://groups.google.com/group/loongson-dev/browse_thread/thread/570549e3d7894fef/5f04b3d9370adfd2
  3. --- xorg-server-1.12.2.orig/fb/fb.h 2012-05-29 22:04:19.000000000 +0200
  4. +++ xorg-server-1.12.2/fb/fb.h 2013-04-30 10:33:00.000000000 +0200
  5. @@ -70,7 +70,7 @@
  6. #define FBPREFIX(x) fb##x
  7. #define WRITE(ptr, val) (*(ptr) = (val))
  8. #define READ(ptr) (*(ptr))
  9. -#define MEMCPY_WRAPPED(dst, src, size) memcpy((dst), (src), (size))
  10. +#define MEMCPY_WRAPPED(dst, src, size) memmove((dst), (src), (size))
  11. #define MEMSET_WRAPPED(dst, val, size) memset((dst), (val), (size))
  12. #endif