diff options
author | Julius Werner <jwerner@chromium.org> | 2013-11-13 18:22:15 -0800 |
---|---|---|
committer | Isaac Christensen <isaac.christensen@se-eng.com> | 2014-09-13 02:21:02 +0200 |
commit | 85620db107d587a8341987162d403f4b7aee9a81 (patch) | |
tree | a3d204806838081f351f164a25f5872697130f42 /src/mainboard/google/pit | |
parent | 813f305e26755aba6826c0f5baf60a65cafbefd6 (diff) | |
download | coreboot-85620db107d587a8341987162d403f4b7aee9a81.tar.xz |
arm: Move exception_init() close to console_init()
This patch adds stub implementations of exception_init() to all archs
so that it can be called from src/lib/hardwaremain.c. It also moves/adds
all other invocations of exception_init() (which needs to be rerun in
every stage) close to console_init(), in the hopes that it will be less
likely overlooked when creating future boards. Also added (an
ineffective) one to the armv4 bootblock implementations for consistency
and in case we want to implement it later.
Change-Id: Iecad10172d25f6c1fc54b0fec8165d7ef60e3414
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/176764
Reviewed-by: Gabe Black <gabeblack@chromium.org>
Reviewed-by: David Hendricks <dhendrix@chromium.org>
(cherry picked from commit 2960623f4a59d841a13793ee906db8d1b1c16c5d)
Signed-off-by: Isaac Christensen <isaac.christensen@se-eng.com>
Reviewed-on: http://review.coreboot.org/6884
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/mainboard/google/pit')
-rw-r--r-- | src/mainboard/google/pit/mainboard.c | 5 | ||||
-rw-r--r-- | src/mainboard/google/pit/romstage.c | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/mainboard/google/pit/mainboard.c b/src/mainboard/google/pit/mainboard.c index c0650d8542..c07db7b85f 100644 --- a/src/mainboard/google/pit/mainboard.c +++ b/src/mainboard/google/pit/mainboard.c @@ -27,7 +27,6 @@ #include <vbe.h> #include <boot/coreboot_tables.h> #include <arch/cache.h> -#include <arch/exception.h> #include <soc/samsung/exynos5420/tmu.h> #include <soc/samsung/exynos5420/clk.h> #include <soc/samsung/exynos5420/cpu.h> @@ -472,10 +471,6 @@ static void mainboard_enable(device_t dev) mmu_config_range(DMA_START >> 20, DMA_SIZE >> 20, DCACHE_OFF); tlb_invalidate_all(); - /* this is going to move, but we must have it now and we're - * not sure where */ - exception_init(); - const unsigned epll_hz = 192000000; const unsigned sample_rate = 48000; const unsigned lr_frame_size = 256; diff --git a/src/mainboard/google/pit/romstage.c b/src/mainboard/google/pit/romstage.c index 1393ba8a8a..16dc997e75 100644 --- a/src/mainboard/google/pit/romstage.c +++ b/src/mainboard/google/pit/romstage.c @@ -25,6 +25,7 @@ #include <cbmem.h> #include <arch/cache.h> +#include <arch/exception.h> #include <soc/samsung/exynos5420/i2c.h> #include <soc/samsung/exynos5420/clk.h> #include <soc/samsung/exynos5420/cpu.h> @@ -242,6 +243,7 @@ void main(void) exynos_pinmux_uart3(); console_init(); + exception_init(); if (power_init_failed) die("Failed to intialize power.\n"); |