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> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4911 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
d08e69dd5e
commit
448509bb4e
|
@ -68,8 +68,10 @@ __run_optionrom = RELOCATED(.)
|
||||||
|
|
||||||
/* Get devfn into %ecx */
|
/* Get devfn into %ecx */
|
||||||
movl %esp, %ebp
|
movl %esp, %ebp
|
||||||
// FIXME: Should this function be called with regparm=0?
|
/* This function is called with regparm=0 and we have
|
||||||
movl 8(%ebp), %ecx
|
* to skip the 32 byte from pushal:
|
||||||
|
*/
|
||||||
|
movl 36(%ebp), %ecx
|
||||||
|
|
||||||
/* Activate the right segment descriptor real mode. */
|
/* Activate the right segment descriptor real mode. */
|
||||||
ljmp $0x28, $RELOCATED(1f)
|
ljmp $0x28, $RELOCATED(1f)
|
||||||
|
|
Loading…
Reference in New Issue