lkml.org 
[lkml]   [2006]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Linux-fbdev-devel] fbmem: is bootup logo broken for monochrome LCD ?

> James Simmons wrote:
> > Lets look at the new code that I have done with your above parameters.
> >
> > for (i = image->height; i--; ) {
> > shift = val = 0;
> > n = image->width;
> > dst = (u32 __iomem *) dst1;
> >
> > while (n--) {
> > if (!s) { src++; s = 32; }
> > s -= 1;
> > color = (swapb32p(src) & (1 << s)) ? 1 : 0;

Replace the below line in my patch I sent

> > val |= color << shift;

with
val <<= shift;
val |= color;

> > /* Did the bitshift spill bits to the next long? */
> > if (shift >= 31) {
> > FB_WRITEL(val, dst++);
> > val = (shift == 31) ? 0 :(color >> (32 - shift));
> > }
> > shift += 1;
> > shift &= (32 - 1);
> > }
> >
> > [ ...]

Let me know if that works.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-11-22 22:07    [W:0.061 / U:0.960 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site