diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-11-14 09:57:55 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-11-15 15:33:13 +0100 |
commit | b1e8a580bc73cdde0ddb9888c4f70afbf3ba0fb0 (patch) | |
tree | 8307d372aaf701a2037cd829051948d341565278 /c/src/lib/libbsp/powerpc/virtex4 | |
parent | bsps: Interrupt initialization error is fatal (diff) | |
download | rtems-b1e8a580bc73cdde0ddb9888c4f70afbf3ba0fb0.tar.bz2 |
bsps/powerpc: Exception initialization error is fatal
Diffstat (limited to 'c/src/lib/libbsp/powerpc/virtex4')
-rw-r--r-- | c/src/lib/libbsp/powerpc/virtex4/startup/bspstart.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/c/src/lib/libbsp/powerpc/virtex4/startup/bspstart.c b/c/src/lib/libbsp/powerpc/virtex4/startup/bspstart.c index f99526403c..2aab2c2505 100644 --- a/c/src/lib/libbsp/powerpc/virtex4/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/virtex4/startup/bspstart.c @@ -104,7 +104,6 @@ LINKER_SYMBOL(__phy_ram_end); static void _noopfun(void) {} static void _bsp_start(void) { - rtems_status_code sc = RTEMS_SUCCESSFUL; uintptr_t intrStackStart = CPU_UP_ALIGN((uint32_t)__bsp_ram_start); uintptr_t intrStackSize = rtems_configuration_get_interrupt_stack_size(); @@ -115,10 +114,9 @@ static void _bsp_start(void) * FPGA, so the external interrupt should not be enabled in order to avoid * spurious interrupts. */ - sc = ppc_exc_initialize(PPC_INTERRUPT_DISABLE_MASK_DEFAULT & ~MSR_EE, - intrStackStart, - intrStackSize); - if (sc != RTEMS_SUCCESSFUL) BSP_panic("Cannot initialize exceptions"); + ppc_exc_initialize(PPC_INTERRUPT_DISABLE_MASK_DEFAULT & ~MSR_EE, + intrStackStart, + intrStackSize); /* Install our own set of exception vectors */ BSP_rtems_irq_mngt_init(0); |