mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-25 19:08:35 +00:00
[romprefix] Preserve %edi when issuing INT 1A,B101
INT 1A,B101 (get PCI BIOS version) will overwrite %edi.
This commit is contained in:
parent
07581d3faa
commit
d5732b0272
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user