summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2008-08-23 00:58:35 +0200
committerMichael Brown2008-08-23 00:58:46 +0200
commitd5e07dfe925e3ebdd2a5f75c614e919801a4381a (patch)
treebf9e3840b042476f4797c53d61becd62ff8f277a
parent[romprefix] On a PCI3.0, non-BBS system, use the correct %cs for INT19 (diff)
downloadipxe-d5e07dfe925e3ebdd2a5f75c614e919801a4381a.tar.gz
ipxe-d5e07dfe925e3ebdd2a5f75c614e919801a4381a.tar.xz
ipxe-d5e07dfe925e3ebdd2a5f75c614e919801a4381a.zip
[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.
-rw-r--r--src/arch/i386/prefix/romprefix.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/i386/prefix/romprefix.S b/src/arch/i386/prefix/romprefix.S
index 59764c6f..baf98e6a 100644
--- a/src/arch/i386/prefix/romprefix.S
+++ b/src/arch/i386/prefix/romprefix.S
@@ -524,8 +524,8 @@ undiloader:
pushw %bx
/* UNDI loader parameter structure address into %es:%di */
movw %sp, %bx
- movw %ss:12(%bx), %di
- movw %ss:14(%bx), %es
+ movw %ss:16(%bx), %di
+ movw %ss:18(%bx), %es
/* Install to specified real-mode addresses */
pushw %di
movw %es:12(%di), %bx