From a0e27979c06088912489633a67644254bc5a1f70 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 26 Feb 2013 19:08:28 -0800 Subject: libpayload: Move over to the payload's stack during startup Don't keep using the coreboot stack on ARMv7. Change-Id: I734c5d77f8584e30ee0c720d41e21e3040f56db4 Signed-off-by: Gabe Black Reviewed-on: http://review.coreboot.org/2668 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones Reviewed-by: Ronald G. Minnich --- payloads/libpayload/arch/armv7/head.S | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'payloads/libpayload') diff --git a/payloads/libpayload/arch/armv7/head.S b/payloads/libpayload/arch/armv7/head.S index e1b5737ead..7a706e3aa6 100644 --- a/payloads/libpayload/arch/armv7/head.S +++ b/payloads/libpayload/arch/armv7/head.S @@ -31,14 +31,21 @@ .text .align 4 +1: +.word _stack + /* * Our entry point */ _entry: /* TODO: disable interrupts */ + /* TODO: Clear BSS */ - /* TODO: Setup new stack */ + + /* Setup new stack */ + ldr sp, 1b + /* TODO: Save old stack pointer */ /* Let's rock. */ -- cgit v1.2.3