On Wednesday 27 October 2004 08:40, Petr Vandrovec wrote: > On 27 Oct 04 at 8:24, Antonino A. Daplas wrote: > > --- a/drivers/video/console/fbcon.c 2004-10-26 23:49:13 +08:00 > > +++ b/drivers/video/console/fbcon.c 2004-10-27 08:17:19 +08:00 > > @@ -1012,7 +1012,9 @@ > > > > static void fbcon_putc(struct vc_data *vc, int c, int ypos, int xpos) > > { > > - fbcon_putcs(vc, (const unsigned short *) &c, 1, ypos, xpos); > > + unsigned short chr = c; > > I think that you must use scr_write(c, &chr) to get it right.
Indeed. Thanks. Tony diff -Nru a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c --- a/drivers/video/console/fbcon.c 2004-10-26 23:49:13 +08:00 +++ b/drivers/video/console/fbcon.c 2004-10-27 09:07:57 +08:00 @@ -1012,7 +1012,10 @@ static void fbcon_putc(struct vc_data *vc, int c, int ypos, int xpos) { - fbcon_putcs(vc, (const unsigned short *) &c, 1, ypos, xpos); + unsigned short chr; + + scr_writew(c, &chr); + fbcon_putcs(vc, &chr, 1, ypos, xpos); } static void fbcon_clear_margins(struct vc_data *vc, int bottom_only)