DORMANTno replies

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

From: "Antonino A. Daplas" <adaplas@gmail.com>
Date: 2005-09-01 21:56:11
Subsystem: framebuffer layer, the rest · Maintainers: Helge Deller, Linus Torvalds

    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 [off-list ref]

---
 nv_local.h |    4 ++++
 1 files changed, 4 insertions(+)

diff --git a/drivers/video/nvidia/nv_local.h b/drivers/video/nvidia/nv_local.h
--- 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__ */



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help