Ver código fonte

[romprefix] Preserve %edi when issuing INT 1A,B101

INT 1A,B101 (get PCI BIOS version) will overwrite %edi.
tags/v0.9.4
Michael Brown 15 anos atrás
pai
commit
d5732b0272
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3
    1
      src/arch/i386/prefix/romprefix.S

+ 3
- 1
src/arch/i386/prefix/romprefix.S Ver arquivo

@@ -177,6 +177,7 @@ init:
177 177
 	/* Check for PCI BIOS version */
178 178
 	pushl	%ebx
179 179
 	pushl	%edx
180
+	pushl	%edi
180 181
 	stc
181 182
 	movw	$0xb101, %ax
182 183
 	int	$0x1a
@@ -199,7 +200,8 @@ init:
199 200
 1:	/* PCI <3.0: set %gs (runtime segment) = %cs (init-time segment) */
200 201
 	pushw	%cs
201 202
 	popw	%gs
202
-2:	popl	%edx
203
+2:	popl	%edi
204
+	popl	%edx
203 205
 	popl	%ebx
204 206
 
205 207
 	/* Check for PnP BIOS */

Carregando…
Cancelar
Salvar