Skip to content

Commit

Permalink
[PATCH] nvidiafb: Fixed mirrored characters in big endian machines
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed Sep 9, 2005
1 parent 88fb2c6 commit 7c1cd6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/video/nvidia/nv_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -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); \
Expand All @@ -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__ */

0 comments on commit 7c1cd6f

Please sign in to comment.