Re: [PATCH] kernel 2.4.18 endianness logical mistakes correction on

Geert Uytterhoeven (geert@linux-m68k.org)
Sat, 25 May 2002 15:45:11 +0200 (MEST)


On Fri, 24 May 2002, François Leblanc wrote:
> DESCRIPTIONS:
>
> 2 small patchs to apply to:
>
> drivers\video\fbcon-cfb2.c
> drivers\video\fbcon-cf4.c o
>
> This patchs correct the endianness logical of nibbletab, the first table is
> u_char mades so no endian needed and the second swap correctly bytes in
> LITTLE_ENDIAN. (old version swap half bytes instead of bytes).

For pixels smaller than a byte, it also depends on what's the order of the
pixels in a byte. So all possibilities are actually possible.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds

- 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/