aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-04 17:13:16 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-04 17:13:16 -0700
commitd4900e57737be8a73e144dc32401d52f3ddbaaf8 (patch)
treeb66f49deda075f74f21e7670f1d08db0e0dd897c /com32
parent8029ff89d33361edf48081748ff9db1239897694 (diff)
downloadsyslinux-d4900e57737be8a73e144dc32401d52f3ddbaaf8.tar.gz
syslinux-d4900e57737be8a73e144dc32401d52f3ddbaaf8.tar.xz
syslinux-d4900e57737be8a73e144dc32401d52f3ddbaaf8.zip
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 <hpa@zytor.com>
Diffstat (limited to 'com32')
-rw-r--r--com32/lib/syslinux/shuffle_rm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/syslinux/shuffle_rm.c b/com32/lib/syslinux/shuffle_rm.c
index 5d79cad7..ccb4f959 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);