From: Frediano Ziglio <[email protected]>

This fix commit 24226472b2fa07d014bef62e308095a69de8a106 bug.
A push instruction was inserted without modifying offset of stack.
This lead to reboot when you try to load UNDI stack.

Signed-off-by: Frediano Ziglio <[email protected]>
---
 src/arch/i386/prefix/undiloader.S |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/arch/i386/prefix/undiloader.S 
b/src/arch/i386/prefix/undiloader.S
index ccdd816..74bb590 100644
--- a/src/arch/i386/prefix/undiloader.S
+++ b/src/arch/i386/prefix/undiloader.S
@@ -23,8 +23,8 @@ undiloader:
        popw    %ds
        /* UNDI loader parameter structure address into %es:%di */
        movw    %sp, %bx
-       movw    %ss:18(%bx), %di
-       movw    %ss:20(%bx), %es
+       movw    %ss:22(%bx), %di
+       movw    %ss:24(%bx), %es
        /* Install to specified real-mode addresses */
        pushw   %di
        movw    %es:12(%di), %bx
-- 
1.7.9.5

_______________________________________________
ipxe-devel mailing list
[email protected]
https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel

Reply via email to