From 53b74f6868cab51d6c8640ece3502297e3396e4b Mon Sep 17 00:00:00 2001 From: Daisuke Nojiri Date: Tue, 30 Dec 2014 08:55:30 -0800 Subject: arm: allow custom stage entry code this change defines stage_entry as a weak symbol so that a board can implement custom stage entry code. BUG=none BRANCH=tot TEST=built all current boards. booted cosmos p1. Change-Id: If8f6945ecdc5047558bb6359aa997867e36f33b9 Signed-off-by: Patrick Georgi Original-Commit-Id: 86d5008981d0b01652907baab47a476d784a2ceb Original-Change-Id: Ib43158c4013e6393d86a9aef37cf444a48b9fc79 Original-Signed-off-by: Daisuke Nojiri Original-Reviewed-on: https://chromium-review.googlesource.com/238021 Original-Reviewed-by: Julius Werner Original-Reviewed-by: Furquan Shaikh Reviewed-on: http://review.coreboot.org/9721 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/arch/arm/stages.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/arch/arm/stages.c b/src/arch/arm/stages.c index 11acc9bd7b..614663fec2 100644 --- a/src/arch/arm/stages.c +++ b/src/arch/arm/stages.c @@ -31,7 +31,10 @@ #include #include -void stage_entry(void) +/** + * generic stage entry point. override this if board specific code is needed. + */ +__attribute__((weak)) void stage_entry(void) { main(); } -- cgit v1.2.3