[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.
This commit is contained in:
parent
82baea0a4b
commit
d5e07dfe92
|
@ -524,8 +524,8 @@ undiloader:
|
||||||
pushw %bx
|
pushw %bx
|
||||||
/* UNDI loader parameter structure address into %es:%di */
|
/* UNDI loader parameter structure address into %es:%di */
|
||||||
movw %sp, %bx
|
movw %sp, %bx
|
||||||
movw %ss:12(%bx), %di
|
movw %ss:16(%bx), %di
|
||||||
movw %ss:14(%bx), %es
|
movw %ss:18(%bx), %es
|
||||||
/* Install to specified real-mode addresses */
|
/* Install to specified real-mode addresses */
|
||||||
pushw %di
|
pushw %di
|
||||||
movw %es:12(%di), %bx
|
movw %es:12(%di), %bx
|
||||||
|
|
Reference in New Issue