Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.13 /drivers/video/newport_con.c

Filename:/drivers/video/newport_con.c
Lines Added:2
Lines Deleted:2
Also changed in: (Previous) 2.4.13-pre6  2.4.13-pre5  2.4.13-pre4  2.4.13-pre3  2.4.12-ac6  2.4.12-ac4 
(Following) 2.4.19-pre2  2.4.19-pre1-ac3  2.4.19-pre2-ac2  2.4.19-pre2-ac3  2.4.19-pre2-ac4  2.4.20-pre7 

Location
[  2.4.13
  [  drivers
    [  video
       o  newport_con.c

Patch

diff -u --recursive --new-file v2.4.12/linux/drivers/video/newport_con.c linux/drivers/video/newport_con.c
--- v2.4.12/linux/drivers/video/newport_con.c   Sun Sep 23 11:41:00 2001
+++ linux/drivers/video/newport_con.c   Mon Oct 15 13:47:24 2001
@@ -379,7 +379,7 @@
    int charattr;
    unsigned char *p;
 
-   charattr = (*s >> 8) & 0xff;
+   charattr = (scr_readw(s) >> 8) & 0xff;
 
    xpos <<= 3;
    ypos <<= 4;
@@ -399,7 +399,7 @@
              NPORT_DMODE0_L32);
 
    for (i = 0; i < count; i++, xpos += 8) {
-      p = &font_data[vc->vc_num][(s[i] & 0xff) << 4];
+      p = &font_data[vc->vc_num][(scr_readw(s++) & 0xff) << 4];
 
       newport_wait();
 


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.