patch-2.4.10 linux/drivers/video/fbcon.c
Next file: linux/drivers/video/fbmem.c
Previous file: linux/drivers/video/fbcon-vga.c
Back to the patch index
Back to the overall index
- Lines: 42
- Date:
Sun Sep 16 21:22:50 2001
- Orig file:
v2.4.9/linux/drivers/video/fbcon.c
- Orig date:
Wed Jul 25 17:10:24 2001
diff -u --recursive --new-file v2.4.9/linux/drivers/video/fbcon.c linux/drivers/video/fbcon.c
@@ -1150,11 +1150,13 @@
}
}
scr_writew(c, d);
+ console_conditional_schedule();
s++;
d++;
} while (s < le);
if (s > start)
p->dispsw->putcs(conp, p, start, s - start, real_y(p, line), x);
+ console_conditional_schedule();
if (offset > 0)
line++;
else {
@@ -2206,6 +2208,10 @@
/* Some cards require 32bit access */
fb_writel (val, dst);
dst += 4;
+ } else if (bdepth == 2 && !((long)dst & 1)) {
+ /* others require 16bit access */
+ fb_writew (val,dst);
+ dst +=2;
} else {
#ifdef __LITTLE_ENDIAN
for( i = 0; i < bdepth; ++i )
@@ -2280,6 +2286,10 @@
/* Some cards require 32bit access */
fb_writel (val, dst);
dst += 4;
+ } else if (bdepth == 2 && !((long)dst & 1)) {
+ /* others require 16bit access */
+ fb_writew (val,dst);
+ dst +=2;
} else {
#ifdef __LITTLE_ENDIAN
for( i = 0; i < bdepth; ++i )
@@ -2493,3 +2503,5 @@
EXPORT_SYMBOL(fbcon_redraw_clear);
EXPORT_SYMBOL(fbcon_dummy);
EXPORT_SYMBOL(fb_con);
+
+MODULE_LICENSE("GPL");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)