[coreboot-gerrit] New patch to review for coreboot: libpayload: Keep stack boundary small on x86

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Wed Jul 1 20:32:42 CEST 2015


Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10751

-gerrit

commit 97f444010dfc8f239606f9a0d6bfea1ad7677299
Author: Stefan Reinauer <stefan.reinauer at coreboot.org>
Date:   Wed Jul 1 11:31:40 2015 -0700

    libpayload: Keep stack boundary small on x86
    
    There is no measurable performance impact, but
    this positively impacts the memory used by payloads.
    
    Change-Id: Ib2bdba4a7bf2a4c2391a20b3225bbb44422d3194
    Signed-off-by: Stefan Reinauer <stefan.reinauer at coreboot.org>
---
 payloads/libpayload/arch/x86/Makefile.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/payloads/libpayload/arch/x86/Makefile.inc b/payloads/libpayload/arch/x86/Makefile.inc
index 87b3e9e..6517bf1 100644
--- a/payloads/libpayload/arch/x86/Makefile.inc
+++ b/payloads/libpayload/arch/x86/Makefile.inc
@@ -27,6 +27,8 @@
 ## SUCH DAMAGE.
 ##
 
+CFLAGS += -mpreferred-stack-boundary=2
+
 head.o-y += head.S
 libc-y += main.c sysinfo.c
 libc-y += timer.c coreboot.c util.S



More information about the coreboot-gerrit mailing list