Skip to content

Commit

Permalink
[romprefix] Preserve %edi when issuing INT 1A,B101
Browse files Browse the repository at this point in the history
INT 1A,B101 (get PCI BIOS version) will overwrite %edi.
  • Loading branch information
Michael Brown committed Aug 26, 2008
1 parent 07581d3 commit d5732b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/arch/i386/prefix/romprefix.S
Expand Up @@ -177,6 +177,7 @@ init:
/* Check for PCI BIOS version */
pushl %ebx
pushl %edx
pushl %edi
stc
movw $0xb101, %ax
int $0x1a
Expand All @@ -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 */
Expand Down

0 comments on commit d5732b0

Please sign in to comment.