From: H. Peter Anvin Date: Sat, 2 May 2009 20:55:42 +0000 (-0700) Subject: mboot: align the stack to a 16-byte boundary X-Git-Tag: syslinux-3.80-pre7~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc5ece2095fb662f2d90db0fca4e5d3738827142;p=profile%2Fivi%2Fsyslinux.git 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 --- diff --git a/com32/mboot/map.c b/com32/mboot/map.c index 4c5eca2..a84fc23 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); }