diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-21 11:43:13 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-22 09:40:23 +0100 |
commit | 1c193a26d227a42a1ea76564950488f48189dbde (patch) | |
tree | 5818e3c47383605bd5fd78f80ceb0c9f9ce3cef8 /c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c | |
parent | sapi: New implementation of rtems_panic() (diff) | |
download | rtems-1c193a26d227a42a1ea76564950488f48189dbde.tar.bz2 |
powerpc: Replace BSP_panic() with rtems_panic()
Due to a new rtems_panic() implementation, it is possible to replace the
PowerPC-specific BSP_panic() with rtems_panic(). Remove BSP_panic()
implementations.
Close #3245.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c b/c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c index beec6f97e4..4cc368ad82 100644 --- a/c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c @@ -51,20 +51,6 @@ uint32_t bsp_timer_average_overhead; /* Average overhead of timer in ticks */ uint32_t bsp_timer_least_valid; /* Least valid number from timer */ bool bsp_timer_internal_clock; /* TRUE, when timer runs with CPU clk */ -void BSP_panic( char *s) -{ - rtems_interrupt_level level; - - rtems_interrupt_disable( level); - (void) level; /* avoid set but not used warning */ - - printk( "%s PANIC %s\n", _RTEMS_version, s); - - while (1) { - /* Do nothing */ - } -} - void _BSP_Fatal_error( unsigned n) { rtems_interrupt_level level; @@ -169,7 +155,7 @@ void bsp_start( void) if (RTEMS_SUCCESSFUL != bsp_tqm_get_cib_uint32("cu", &BSP_bus_frequency)) { - BSP_panic("Cannot determine BUS frequency\n"); + rtems_panic("Cannot determine BUS frequency\n"); } bsp_time_base_frequency = BSP_bus_frequency / 16; |