[rtems commit] bsps/powerpc: Avoid recursion in exception handler

Sebastian Huber sebh at rtems.org
Tue Mar 29 11:44:32 UTC 2016


Module:    rtems
Branch:    master
Commit:    ffa9cbfe726c96f164ffa4ca168a7b7d03c43398
Changeset: http://git.rtems.org/rtems/commit/?id=ffa9cbfe726c96f164ffa4ca168a7b7d03c43398

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Mar 29 08:11:29 2016 +0200

bsps/powerpc: Avoid recursion in exception handler

---

 c/src/lib/libbsp/powerpc/shared/startup/bspstart.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c b/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c
index 0f450fc..5a069b8 100644
--- a/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c
@@ -93,7 +93,10 @@ void BSP_panic(char *s)
 void _BSP_Fatal_error(unsigned int v)
 {
   printk("%s PANIC ERROR %x\n",_RTEMS_version, v);
-  __asm__ __volatile ("sc");
+
+  while (true) {
+    /* Do nothing */
+  }
 }
 
 /*




More information about the vc mailing list