On Mon, May 12, 2014 at 08:53:53PM +0200, Bernhard Walle wrote:
> Am 2014-05-12 07:29, schrieb Kevin O'Connor:
> >
> >It does look like the x86emu issue. You can try applying the
> >SeaVGABIOS patch below to confirm it.
>
> The output doesn't appear. But I'm sure that I copied the correct files
> because modifications of other strings worked.
Heh - old versions of x86emu apparently don't support "rep outsb"
either. Can you test the patch below instead?
-Kevin
--- 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