Author: stepan Date: 2009-11-05 09:09:20 +0000 (Thu, 05 Nov 2009) New Revision: 4911
Modified: trunk/util/x86emu/x86_asm.S Log:
Get the passed in Bus/Device/Function from the correct location on the stack.
Signed-off-by: Mark Marshall mark.marshall@csr.com
Clarified the comment and Acked-by: Stefan Reinauer stepan@coresystems.de
Modified: trunk/util/x86emu/x86_asm.S =================================================================== --- trunk/util/x86emu/x86_asm.S 2009-11-05 09:03:04 UTC (rev 4910) +++ trunk/util/x86emu/x86_asm.S 2009-11-05 09:09:20 UTC (rev 4911) @@ -68,8 +68,10 @@
/* 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)