summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-01-04 18:45:08 +0000
committerpeter <peter@FreeBSD.org>1999-01-04 18:45:08 +0000
commit46c636cd84f5c33710e7d9d123d5077f72c1623c (patch)
treefb97005a7c7f45d2b36cfd16af86b6fd252bb91e /sys/boot
parent6a8415504a888d3cea4e34a73ef1233790162374 (diff)
downloadFreeBSD-src-46c636cd84f5c33710e7d9d123d5077f72c1623c.zip
FreeBSD-src-46c636cd84f5c33710e7d9d123d5077f72c1623c.tar.gz
Fix a potential sign extension bug on 8-bit chars.
Outputting a backspace isn't supposed to be destructive.. It isn't on most terminals, nor on the standard bios output (vs. TERM_EMU mode)
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/i386/libi386/vidconsole.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/boot/i386/libi386/vidconsole.c b/sys/boot/i386/libi386/vidconsole.c
index 6b95c1e..05e7711 100644
--- a/sys/boot/i386/libi386/vidconsole.c
+++ b/sys/boot/i386/libi386/vidconsole.c
@@ -26,7 +26,7 @@
*
* From Id: probe_keyboard.c,v 1.13 1997/06/09 05:10:55 bde Exp
*
- * $Id: vidconsole.c,v 1.9 1998/12/22 11:51:25 abial Exp $
+ * $Id: vidconsole.c,v 1.10 1998/12/31 13:44:04 abial Exp $
*/
#include <stand.h>
@@ -124,7 +124,7 @@ vidc_biosputchar(int c)
{
v86.ctl = 0;
v86.addr = 0x10;
- v86.eax = 0xe00 | c;
+ v86.eax = 0xe00 | (c & 0xff);
v86.ebx = 0x7;
v86int();
}
@@ -164,7 +164,7 @@ vidc_rawputchar(int c)
if(curx>0) {
curx--;
curs_move(curx,cury);
- write_char(' ',fg_c,bg_c);
+ /* write_char(' ',fg_c,bg_c); XXX destructive(!) */
return;
}
return;
OpenPOWER on IntegriCloud