diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2014-12-30 08:55:30 -0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-04-17 09:20:46 +0200 |
commit | 53b74f6868cab51d6c8640ece3502297e3396e4b (patch) | |
tree | fecb107ef3f83bfb55a57a3ecbdb6d808ce58c79 /src | |
parent | 1c780095960d4d2344107be7088ccbe5913eaf4b (diff) | |
download | coreboot-53b74f6868cab51d6c8640ece3502297e3396e4b.tar.xz |
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 <pgeorgi@chromium.org>
Original-Commit-Id: 86d5008981d0b01652907baab47a476d784a2ceb
Original-Change-Id: Ib43158c4013e6393d86a9aef37cf444a48b9fc79
Original-Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/238021
Original-Reviewed-by: Julius Werner <jwerner@chromium.org>
Original-Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: http://review.coreboot.org/9721
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/arm/stages.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 <arch/stages.h> #include <arch/cache.h> -void stage_entry(void) +/** + * generic stage entry point. override this if board specific code is needed. + */ +__attribute__((weak)) void stage_entry(void) { main(); } |