summaryrefslogtreecommitdiff
path: root/com32/mboot
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-02 13:55:42 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-02 13:55:42 -0700
commitfc5ece2095fb662f2d90db0fca4e5d3738827142 (patch)
tree2ec6907fc854419b941a9435eb3f8ac6bcac59b7 /com32/mboot
parent151171fbb46bfa12a69e091f2740ed122acfea38 (diff)
downloadsyslinux-fc5ece2095fb662f2d90db0fca4e5d3738827142.tar.gz
mboot: align the stack to a 16-byte boundary
Align the stack to a 16-byte boundary, just in case... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/mboot')
-rw-r--r--com32/mboot/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/mboot/map.c b/com32/mboot/map.c
index 4c5eca28..a84fc234 100644
--- a/com32/mboot/map.c
+++ b/com32/mboot/map.c
@@ -312,7 +312,7 @@ static void mboot_map_stack(void)
if (syslinux_memmap_largest(amap, SMT_FREE, &start, &len) || len < 64)
return; /* Not much we can do, here... */
- regs.esp = (start+len-32) & ~7;
+ regs.esp = (start+len-32) & ~15;
dprintf("Mapping stack at 0x%08x\n", regs.esp);
syslinux_add_memmap(&mmap, regs.esp, 32, SMT_ZERO);
}