diff options
author | Hung-Te Lin <hungte@chromium.org> | 2013-02-04 14:38:03 +0800 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2013-02-07 06:10:09 +0100 |
commit | 5f83f6cb7a3f179482db54aaff38f23795dc1acf (patch) | |
tree | bd94e259d2ae6fab8e4b993d04215b0964d8bf5f /src/arch/armv7/stages.c | |
parent | c720d8d5d419d8e9128392cd7ab90e3a3fca1d4b (diff) |
armv7: Clean up arm/snow bootblock build process.
Remove duplicated / testing code and share more driver for bootblock, romstage
and ramstage.
The __PRE_RAM__ is now also defined in bootblock build stage, since bootblock is
executed before RAM is initialized.
Change-Id: I4f5469b1545631eee1cf9f2f5df93cbe3a58268b
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: http://review.coreboot.org/2282
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/arch/armv7/stages.c')
-rw-r--r-- | src/arch/armv7/stages.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/armv7/stages.c b/src/arch/armv7/stages.c index fd4374ff9c..e8a47e52fe 100644 --- a/src/arch/armv7/stages.c +++ b/src/arch/armv7/stages.c @@ -38,8 +38,8 @@ void stage_entry(void) main(); } -void stage_exit(unsigned long addr) +void stage_exit(void *addr) { - __attribute__((noreturn)) void (*doit)(void) = (void *)addr; + __attribute__((noreturn)) void (*doit)(void) = addr; doit(); } |