david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[romprefix] Preserve %edi when issuing INT 1A,B101

INT 1A,B101 (get PCI BIOS version) will overwrite %edi.
This commit is contained in:
Michael Brown 2008-08-26 05:03:19 +01:00
parent 07581d3faa
commit d5732b0272
1 changed files with 3 additions and 1 deletions

View File

@ -177,6 +177,7 @@ init:
/* Check for PCI BIOS version */
pushl %ebx
pushl %edx
pushl %edi
stc
movw $0xb101, %ax
int $0x1a
@ -199,7 +200,8 @@ init:
1: /* PCI <3.0: set %gs (runtime segment) = %cs (init-time segment) */
pushw %cs
popw %gs
2: popl %edx
2: popl %edi
popl %edx
popl %ebx
/* Check for PnP BIOS */