[PATCH] nvidiafb: Fixed mirrored characters in big endian machines
authorAntonino A. Daplas <adaplas@gmail.com>
Fri, 9 Sep 2005 20:10:01 +0000 (13:10 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 21:03:40 +0000 (14:03 -0700)
nvidiafb_imageblit converts the bitdata stream from big_endian to little
endian.  This produces mirrored characters when machine is big_endian.  Do not
endian convert on big endian machines.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/nvidia/nv_local.h

index 9da320986f4c924900e7ff1358232428e88c7c42..afee284fc73c964bbc4fb2782c0fa251b13ccb28 100644 (file)
@@ -95,6 +95,7 @@
 
 #define READ_GET(par) (NV_RD32(&(par)->FIFO[0x0011], 0) >> 2)
 
+#ifdef __LITTLE_ENDIAN
 #define reverse_order(l)        \
 do {                            \
        u8 *a = (u8 *)(l);      \
@@ -103,5 +104,8 @@ do {                            \
        *a = byte_rev[*a], a++; \
        *a = byte_rev[*a];      \
 } while(0)
+#else
+#define reverse_order(l)
+#endif                          /* __LITTLE_ENDIAN */
 
 #endif                         /* __NV_LOCAL_H__ */