[rtems commit] bsp/mpc55xx: Add and use mpc55xx_fatal_code
Sebastian Huber
sebh at rtems.org
Mon Dec 3 12:14:53 UTC 2012
Module: rtems
Branch: master
Commit: fee41c96892bae8e8b0aee2259ccbf7cc51eb704
Changeset: http://git.rtems.org/rtems/commit/?id=fee41c96892bae8e8b0aee2259ccbf7cc51eb704
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Dec 3 13:08:42 2012 +0100
bsp/mpc55xx: Add and use mpc55xx_fatal_code
---
c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h | 4 ++++
.../powerpc/mpc55xxevb/startup/start-clock.c | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h b/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h
index 251404f..017e105 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h
@@ -77,6 +77,10 @@ void *bsp_idle_thread(uintptr_t arg);
#define BSP_IDLE_TASK_BODY bsp_idle_thread
+typedef enum {
+ MPC55XX_FATAL_FMPLL_LOCK
+} mpc55xx_fatal_code;
+
#ifdef __cplusplus
}
#endif /* __cplusplus */
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-clock.c b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-clock.c
index e3d4405..b8803f9 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-clock.c
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-clock.c
@@ -38,7 +38,7 @@
}
if (!lock) {
- bsp_reset();
+ rtems_fatal(RTEMS_FATAL_SOURCE_BSP_SPECIFIC, MPC55XX_FATAL_FMPLL_LOCK);
}
}
#endif
More information about the vc
mailing list