Index: drivers/cfb_console.c =================================================================== RCS file: /home/cvsroot/Projects/u-boot/drivers/cfb_console.c,v retrieving revision 1.1.1.3 diff -p -u -r1.1.1.3 cfb_console.c --- drivers/cfb_console.c 22 Oct 2005 20:51:29 -0000 1.1.1.3 +++ drivers/cfb_console.c 5 Mar 2007 04:22:57 -0000 @@ -299,8 +299,8 @@ void console_cursor (int state); #define SWAP16(x) ((((x) & 0x00ff) << 8) | ( (x) >> 8)) #define SWAP32(x) ((((x) & 0x000000ff) << 24) | (((x) & 0x0000ff00) << 8)|\ (((x) & 0x00ff0000) >> 8) | (((x) & 0xff000000) >> 24) ) -#define SHORTSWAP32(x) ((((x) & 0x000000ff) << 8) | (((x) & 0x0000ff00) >> 8)|\ - (((x) & 0x00ff0000) << 8) | (((x) & 0xff000000) >> 8) ) +#define SHORTSWAP32(x) ((((x) & 0x0000ffff) << 16) | (((x) & 0xffff0000) >> 16)) + #else #define SWAP16(x) (x) #define SWAP32(x) (x)