mirror of https://github.com/ipxe/ipxe.git
[romprefix] Preserve %edi when issuing INT 1A,B101
INT 1A,B101 (get PCI BIOS version) will overwrite %edi.pull/1/head
parent
07581d3faa
commit
d5732b0272
|
@ -177,6 +177,7 @@ init:
|
||||||
/* Check for PCI BIOS version */
|
/* Check for PCI BIOS version */
|
||||||
pushl %ebx
|
pushl %ebx
|
||||||
pushl %edx
|
pushl %edx
|
||||||
|
pushl %edi
|
||||||
stc
|
stc
|
||||||
movw $0xb101, %ax
|
movw $0xb101, %ax
|
||||||
int $0x1a
|
int $0x1a
|
||||||
|
@ -199,7 +200,8 @@ init:
|
||||||
1: /* PCI <3.0: set %gs (runtime segment) = %cs (init-time segment) */
|
1: /* PCI <3.0: set %gs (runtime segment) = %cs (init-time segment) */
|
||||||
pushw %cs
|
pushw %cs
|
||||||
popw %gs
|
popw %gs
|
||||||
2: popl %edx
|
2: popl %edi
|
||||||
|
popl %edx
|
||||||
popl %ebx
|
popl %ebx
|
||||||
|
|
||||||
/* Check for PnP BIOS */
|
/* Check for PnP BIOS */
|
||||||
|
|
Loading…
Reference in New Issue