summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/prefix/romprefix.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/i386/prefix/romprefix.S')
-rw-r--r--src/arch/i386/prefix/romprefix.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/arch/i386/prefix/romprefix.S b/src/arch/i386/prefix/romprefix.S
index 8b2e20b2..b22cbab3 100644
--- a/src/arch/i386/prefix/romprefix.S
+++ b/src/arch/i386/prefix/romprefix.S
@@ -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 */