From d4900e57737be8a73e144dc32401d52f3ddbaaf8 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 4 May 2009 17:13:16 -0700 Subject: [PATCH] shuffler: fix setting up esp in real-mode shuffles The value of esp set in real-mode shuffles was wrong. This unfortunately broke linux.c32 :( Signed-off-by: H. Peter Anvin --- com32/lib/syslinux/shuffle_rm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com32/lib/syslinux/shuffle_rm.c b/com32/lib/syslinux/shuffle_rm.c index 5d79cad..ccb4f95 100644 --- a/com32/lib/syslinux/shuffle_rm.c +++ b/com32/lib/syslinux/shuffle_rm.c @@ -144,7 +144,7 @@ int syslinux_shuffle_boot_rm(struct syslinux_movelist *fraglist, /* Load SS and ESP immediately */ MOV_TO_SEG(p, R_SS, R_BX); - MOV_TO_R32(p, R_SP, rp->seg[R_SP]); + MOV_TO_R32(p, R_SP, rp->gpr[R_SP]); /* Load the other segments */ MOV_TO_SEG(p, R_ES, R_CX); -- 2.7.4