aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2014-05-12 01:26:26 -0400
committerKevin O'Connor <kevin@koconnor.net>2014-05-13 10:51:29 -0400
commit3c37cdb1977056f875edb48513729409bd752d57 (patch)
tree0b4ccb80ce0dd02197d15c1ace98f98197ea44cf /vgasrc
parentb1d4dc908401719c5de78c25313cf82c7cd1d602 (diff)
downloadseabios-3c37cdb1977056f875edb48513729409bd752d57.tar.gz
seabios-3c37cdb1977056f875edb48513729409bd752d57.tar.xz
seabios-3c37cdb1977056f875edb48513729409bd752d57.zip
vgabios: Add debug message if x86emu leal check triggers.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc')
-rw-r--r--vgasrc/vgaentry.S10
1 files changed, 10 insertions, 0 deletions
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