[PATCH] font SUN12x22 working on little endian

Francois-Rene Rideau (fare@tunes.org)
Wed, 14 Oct 1998 12:40:11 +0200


Dear Linus, dear Linux Kernel users,

This "patch" fixes the SUN12x22 kernel font in kernel 2.1.125,
so that it works on little endian computers as well as on big endian ones,
by enforcing bigendian storage of the font, independently of local endianness.

I've verified that all drivers for fonts of width such that 8<width<=16
will work with this patch (will work either cfb* or special Sun hardware).

PS: down with braindead endian, long live loveful endian! <evil grin>

The "patch" consists in running the following command:

cd /usr/src/linux
cd drivers/video
perl -npe '
s/5632/11264/ ;
s/short fontdata/char fontdata/ ;
s/0x(..)(..), /0x$1, 0x$2, / ;
' < font_sun12x22.c > font_sun12x22.c.new &&
mv -f font_sun12x22.c.new font_sun12x22.c

## Faré | VN: Уng-Vû Bân | Join the TUNES project! http://www.tunes.org/ ##
## FR: François-René Rideau | TUNES is a Useful, Not Expedient System ##
## Reflection&Cybernethics | Project for a Free Reflective Computing System ##
"I'm going to live forever, or die trying!" -- Spider Robinson

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