[rtems commit] bsp/virtex: Delete BSP_ask_for_reset and BSP_panic
Sebastian Huber
sebh at rtems.org
Mon Jun 24 08:48:40 UTC 2013
Module: rtems
Branch: master
Commit: 53dc697501480d6731b90bc944718dd500f4eb51
Changeset: http://git.rtems.org/rtems/commit/?id=53dc697501480d6731b90bc944718dd500f4eb51
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Jun 18 16:42:25 2013 +0200
bsp/virtex: Delete BSP_ask_for_reset and BSP_panic
---
c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c | 20 +++++++-------------
1 files changed, 7 insertions(+), 13 deletions(-)
diff --git a/c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c b/c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c
index 7eff388..e396bf1 100644
--- a/c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c
@@ -108,20 +108,14 @@ void bsp_start( void )
bsp_interrupt_initialize();
}
-void BSP_ask_for_reset(void)
+void _BSP_Fatal_error(unsigned int v)
{
- printk("system stopped, press RESET");
- while(1) {};
-}
+ rtems_interrupt_level level;
-void BSP_panic(char *s)
-{
- printk("%s PANIC %s\n",_RTEMS_version, s);
- BSP_ask_for_reset();
-}
+ rtems_interrupt_disable(level);
+ (void) level;
-void _BSP_Fatal_error(unsigned int v)
-{
- printk("%s PANIC ERROR %x\n",_RTEMS_version, v);
- BSP_ask_for_reset();
+ while (true) {
+ /* Do nothing */
+ }
}
More information about the vc
mailing list