From: Kevin O'Connor Date: Mon, 12 May 2014 05:26:26 +0000 (-0400) Subject: vgabios: Add debug message if x86emu leal check triggers. X-Git-Tag: rel-1.7.5~4 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=3c37cdb1977056f875edb48513729409bd752d57;p=seabios.git vgabios: Add debug message if x86emu leal check triggers. Signed-off-by: Kevin O'Connor --- diff --git a/vgasrc/vgaentry.S b/vgasrc/vgaentry.S index 6e31c4e..11197f1 100644 --- a/vgasrc/vgaentry.S +++ b/vgasrc/vgaentry.S @@ -47,7 +47,17 @@ _rom_header_signature: // Force a fault if found to be running on broken x86emu versions. DECLFUNC x86emu_fault +msg: .ascii "SeaVGABIOS: x86emu leal trap!\n" x86emu_fault: +#if CONFIG_DEBUG_IO + movw %cs:DebugOutputPort, %dx + movw $msg, %si +1: movb %cs:(%si), %al + outb %al, (%dx) + incw %si + cmpw $x86emu_fault, %si + jl 1b +#endif 1: hlt jmp 1b