2
0
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:
Michael Brown 2008-08-26 05:03:19 +01:00
parent 07581d3faa
commit d5732b0272

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 */