From 9909e7b10ab9c2e1fd9b81eaac59fbaec76b9613 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 17 Apr 2013 19:36:03 +0100 Subject: [PATCH] [bios] Fix screen clearing on buggy BIOSes The implementation of INT 10,06 on some BIOSes (observed with both Hyper-V and a Dell OptiPlex 7010) seems to treat %dx=0xffff as a special value meaning "do absolutely nothing". Fix by using %dx=0xfefe, which should still be sufficient to cover any realistic screen size. Reported-by: John Clark Tested-by: John Clark Signed-off-by: Michael Brown --- src/arch/i386/firmware/pcbios/bios_console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/i386/firmware/pcbios/bios_console.c b/src/arch/i386/firmware/pcbios/bios_console.c index 25c8dad2d..213ebd92c 100644 --- a/src/arch/i386/firmware/pcbios/bios_console.c +++ b/src/arch/i386/firmware/pcbios/bios_console.c @@ -97,7 +97,7 @@ static void bios_handle_ed ( unsigned int count __unused, "int $0x10\n\t" "cli\n\t" ) : : "a" ( 0x0600 ), "b" ( bios_attr << 8 ), - "c" ( 0 ), "d" ( 0xffff ) ); + "c" ( 0 ), "d" ( 0xfefe ) ); } /**