Commit 7c1cd6fd authored by Antonino A. Daplas's avatar Antonino A. Daplas Committed by Linus Torvalds

[PATCH] nvidiafb: Fixed mirrored characters in big endian machines

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: default avatarAntonino Daplas <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 88fb2c6e
...@@ -95,6 +95,7 @@ ...@@ -95,6 +95,7 @@
#define READ_GET(par) (NV_RD32(&(par)->FIFO[0x0011], 0) >> 2) #define READ_GET(par) (NV_RD32(&(par)->FIFO[0x0011], 0) >> 2)
#ifdef __LITTLE_ENDIAN
#define reverse_order(l) \ #define reverse_order(l) \
do { \ do { \
u8 *a = (u8 *)(l); \ u8 *a = (u8 *)(l); \
...@@ -103,5 +104,8 @@ do { \ ...@@ -103,5 +104,8 @@ do { \
*a = byte_rev[*a], a++; \ *a = byte_rev[*a], a++; \
*a = byte_rev[*a]; \ *a = byte_rev[*a]; \
} while(0) } while(0)
#else
#define reverse_order(l)
#endif /* __LITTLE_ENDIAN */
#endif /* __NV_LOCAL_H__ */ #endif /* __NV_LOCAL_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment