mirror of
https://github.com/ipxe/ipxe
synced 2025-12-11 05:51:37 +03:00
[romprefix] Preserve %edi when issuing INT 1A,B101
INT 1A,B101 (get PCI BIOS version) will overwrite %edi.
This commit is contained in:
@@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user