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:
Mark Marshall 2009-11-05 09:09:20 +00:00 committed by Stefan Reinauer
parent d08e69dd5e
commit 448509bb4e
1 changed files with 4 additions and 2 deletions

View File

@ -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)