diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2005-09-09 22:10:01 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 23:03:40 +0200 |
commit | 7c1cd6fd5efeb95603e37f35b5da293b452d8b64 (patch) | |
tree | cadcf82935323add229fd467beebf20c26379011 /drivers/video/nvidia | |
parent | [PATCH] fbcon: Stop cursor timer if console is inactive (diff) | |
download | linux-7c1cd6fd5efeb95603e37f35b5da293b452d8b64.tar.xz linux-7c1cd6fd5efeb95603e37f35b5da293b452d8b64.zip |
[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: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/nvidia')
-rw-r--r-- | drivers/video/nvidia/nv_local.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/nvidia/nv_local.h b/drivers/video/nvidia/nv_local.h index 9da320986f4c..afee284fc73c 100644 --- a/drivers/video/nvidia/nv_local.h +++ b/drivers/video/nvidia/nv_local.h @@ -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__ */ |