aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/x86emu/x86_asm.S6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/x86emu/x86_asm.S b/util/x86emu/x86_asm.S
index c41e39dc18..5e2518c695 100644
--- a/util/x86emu/x86_asm.S
+++ b/util/x86emu/x86_asm.S
@@ -68,8 +68,10 @@ __run_optionrom = RELOCATED(.)
/* Get devfn into %ecx */
movl %esp, %ebp
- // FIXME: Should this function be called with regparm=0?
- movl 8(%ebp), %ecx
+ /* This function is called with regparm=0 and we have
+ * to skip the 32 byte from pushal:
+ */
+ movl 36(%ebp), %ecx
/* Activate the right segment descriptor real mode. */
ljmp $0x28, $RELOCATED(1f)