Browse Source

[romprefix] Fix regression in UNDI loader

Commit 12f203c introduced a bug that caused the UNDI loader to attempt
to load the UNDI code and data segments to incorrect addresses.
tags/v0.9.4
Michael Brown 16 years ago
parent
commit
d5e07dfe92
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/arch/i386/prefix/romprefix.S

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

@@ -524,8 +524,8 @@ undiloader:
524 524
 	pushw	%bx
525 525
 	/* UNDI loader parameter structure address into %es:%di */
526 526
 	movw	%sp, %bx
527
-	movw	%ss:12(%bx), %di
528
-	movw	%ss:14(%bx), %es
527
+	movw	%ss:16(%bx), %di
528
+	movw	%ss:18(%bx), %es
529 529
 	/* Install to specified real-mode addresses */
530 530
 	pushw	%di
531 531
 	movw	%es:12(%di), %bx

Loading…
Cancel
Save