summaryrefslogtreecommitdiff
path: root/extlinux.asm
diff options
context:
space:
mode:
authorhpa <hpa>2005-01-04 22:17:17 +0000
committerhpa <hpa>2005-01-04 22:17:17 +0000
commit0f5815800c602279e8a764441a16fd5478c0f387 (patch)
treec920ee4220350d5f721f34241a0cf002c32e94d1 /extlinux.asm
parent10ae4b4ddda70fd165620864591886a8810d4be0 (diff)
downloadsyslinux-3.02-pre3.tar.gz
New CONSOLE directive to enable/disable the video console.syslinux-3.02-pre3
Diffstat (limited to 'extlinux.asm')
-rw-r--r--extlinux.asm5
1 files changed, 4 insertions, 1 deletions
diff --git a/extlinux.asm b/extlinux.asm
index 9577d310..78496bd5 100644
--- a/extlinux.asm
+++ b/extlinux.asm
@@ -6,7 +6,7 @@
;
; A program to boot Linux kernels off an ext2/ext3 filesystem.
;
-; Copyright (C) 1994-2004 H. Peter Anvin
+; Copyright (C) 1994-2005 H. Peter Anvin
;
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
@@ -1151,12 +1151,15 @@ unmangle_name: call strcpy
writechr:
call write_serial ; write to serial port if needed
pushfd
+ test byte [cs:DisplayCon],01h
+ jz .nothing
pushad
mov ah,0Eh
mov bl,07h ; attribute
mov bh,[cs:BIOS_page] ; current page
int 10h
popad
+.nothing:
popfd
ret