diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-05-04 17:13:16 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-05-04 17:13:16 -0700 |
commit | d4900e57737be8a73e144dc32401d52f3ddbaaf8 (patch) | |
tree | b66f49deda075f74f21e7670f1d08db0e0dd897c /com32/lib/syslinux | |
parent | 8029ff89d33361edf48081748ff9db1239897694 (diff) | |
download | syslinux-d4900e57737be8a73e144dc32401d52f3ddbaaf8.tar.gz |
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/lib/syslinux')
-rw-r--r-- | com32/lib/syslinux/shuffle_rm.c | 2 |
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); |