<style>
BODY{FONT-SIZE: 10pt;}
DIV, P {FONT-SIZE: 10pt;margin-top:2px;margin-bottom:2px;}
TD {FONT-SIZE: 10pt}
</style>
<body leftmargin=1 topmargin=1>
<BR>
Hello.
<BR>
<BR>
I tried modifying udlfb.c to prove endian problem in PowerPC (big-endian architecture)
<BR>
<BR>
I modified pseudo palette bit definition part in dlfb_setcolreg() function. but, It don't works, too
<BR>
<BR>
Please give some clue :)
<BR>
<BR>
My modified code is
<BR>
<BR>
in the header (endian convert function)
<BR>
----------------------------
<BR>
+#define SWAP32(l) \
<BR>
+(((((l) & 0xff000000) >> 24)| \
<BR>
+(((l) & 0x00ff0000) >> 8) | \
<BR>
+(((l) & 0x0000ff00) << 8) | \
<BR>
+(((l) & 0x000000ff) << 24)))
<BR>
<BR>
in dlfb_setcolreg() function
<BR>
---------------------------
<BR>
+ u32 endian_temp;
<BR>
- ((u32 *) (info->pseudo_palette))[regno] =
<BR>
+ endian_temp =
<BR>
((red & 0xf800) >> 1) |
<BR>
((green & 0xf800) >> 6) | ((blue & 0xf800) >> 11);
<BR>
+ ((u32 *) (info->pseudo_palette))[regno] = SWAP32(endian_temp);</body>
<img src="http://wmail.postech.ac.kr:80/receiveMDNResponse.do?from=hsk1385@postech.ac.kr&to=libdlo@lists.freedesktop.org&mid=16496674.1244824803751.JavaMail.root%40mail2.postech.ac.kr&store=%2Fstore04%2Fmindex%2F900%2Fhsk1385&host=mail.postech.ac.kr" height=1 width=1>