[coreboot-gerrit] New patch to review for coreboot: 2b17f09 arm: allow custom stage entry code

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Thu Apr 16 10:26:40 CEST 2015


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/9721

-gerrit

commit 2b17f094c3f7339947d75fcdf1afae4fb302991a
Author: Daisuke Nojiri <dnojiri at chromium.org>
Date:   Tue Dec 30 08:55:30 2014 -0800

    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 at chromium.org>
    Original-Commit-Id: 86d5008981d0b01652907baab47a476d784a2ceb
    Original-Change-Id: Ib43158c4013e6393d86a9aef37cf444a48b9fc79
    Original-Signed-off-by: Daisuke Nojiri <dnojiri at chromium.org>
    Original-Reviewed-on: https://chromium-review.googlesource.com/238021
    Original-Reviewed-by: Julius Werner <jwerner at chromium.org>
    Original-Reviewed-by: Furquan Shaikh <furquan at chromium.org>
---
 src/arch/arm/stages.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/arch/arm/stages.c b/src/arch/arm/stages.c
index 11acc9b..614663f 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();
 }



More information about the coreboot-gerrit mailing list