From d5732b027252e87509aea29d35d2c2f020f11ec2 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 26 Aug 2008 05:03:19 +0100 Subject: [PATCH] [romprefix] Preserve %edi when issuing INT 1A,B101 INT 1A,B101 (get PCI BIOS version) will overwrite %edi. --- src/arch/i386/prefix/romprefix.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */