Browse Source

[romprefix] Fix ROM image copy on PCI 3.0 BIOSes

Add the missing instructions to the code path that I never tested due
to not having a PCI 3.0 system available.

(D'oh)
tags/v0.9.4
Michael Brown 16 years ago
parent
commit
8332ddf556
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/arch/i386/prefix/romprefix.S

+ 3
- 1
src/arch/i386/prefix/romprefix.S View File

@@ -290,7 +290,9 @@ no_pmm:
290 290
 	movzbw	romheader_size, %cx
291 291
 	shlw	$9, %cx
292 292
 	movw	%ax, %es
293
-	rep	movsb
293
+	xorw	%si, %si
294
+	xorw	%di, %di
295
+	cs rep	movsb
294 296
 no_pci3:
295 297
 no_pci:
296 298
 	/* Prompt for POST-time shell */

Loading…
Cancel
Save