Skip to content

Commit 9df238a

Browse files
Frediano Zigliomcb30
authored andcommittedMay 14, 2013
[romprefix] Fix incorrect pointer offset in undiloader.S
Commit 2422647 ("[prefix] Allow prefix to specify an arbitrary maximum address for relocation") introduced a regression into the UNDI ROM loader by preserving an extra register on the stack without modifying the %sp-relative addresses used in the routine. Fix by correcting the %sp-relative addresses to allow for the extra preserved variable. Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
1 parent 05d11b7 commit 9df238a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/arch/i386/prefix/undiloader.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ undiloader:
2323
popw %ds
2424
/* UNDI loader parameter structure address into %es:%di */
2525
movw %sp, %bx
26-
movw %ss:18(%bx), %di
27-
movw %ss:20(%bx), %es
26+
movw %ss:22(%bx), %di
27+
movw %ss:24(%bx), %es
2828
/* Install to specified real-mode addresses */
2929
pushw %di
3030
movw %es:12(%di), %bx

0 commit comments

Comments
 (0)
Please sign in to comment.