[ipxe-devel] [PATCH] Fix wrong pointer offset in undiloader.S

Frediano Ziglio frediano.ziglio at citrix.com
Tue May 14 13:06:25 UTC 2013


From: Frediano Ziglio <frediano.ziglio at citrix.com>

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 <frediano.ziglio at citrix.com>
---
 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



More information about the ipxe-devel mailing list