diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-11-20 11:13:04 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-11-20 11:13:04 +0000 |
commit | 570949e7f457fb453839920d4884bf6370b5d401 (patch) | |
tree | 7b4f7dad592fda8e8246937d716be941f0b6c49e /os/common | |
parent | 665640ba0afdd833f5a727a0741208d0282f01bb (diff) | |
download | ChibiOS-570949e7f457fb453839920d4884bf6370b5d401.tar.gz ChibiOS-570949e7f457fb453839920d4884bf6370b5d401.tar.bz2 ChibiOS-570949e7f457fb453839920d4884bf6370b5d401.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6501 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/common')
-rw-r--r-- | os/common/ports/e200/compilers/GCC/vectors.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/os/common/ports/e200/compilers/GCC/vectors.h b/os/common/ports/e200/compilers/GCC/vectors.h index 1e6ef21de..ce175e652 100644 --- a/os/common/ports/e200/compilers/GCC/vectors.h +++ b/os/common/ports/e200/compilers/GCC/vectors.h @@ -35,6 +35,10 @@ /* Module constants. */
/*===========================================================================*/
+#define INTC_MCR *((volatile uint32_t *)0xfff48000)
+#define INTC_CPR *((volatile uint32_t *)0xfff48008)
+#define INTC_IACKR *((volatile uint32_t *)0xfff48010)
+
/*===========================================================================*/
/* Module pre-compile time settings. */
/*===========================================================================*/
@@ -56,7 +60,7 @@ /*===========================================================================*/
#if !defined(__DOXYGEN__)
-extern uint32_t _vectors[PPC_VECTORS_NUMBER];
+extern uint32_t _vectors[PPC_NUM_VECTORS];
#endif
#ifdef __cplusplus
@@ -67,6 +71,17 @@ extern "C" { }
#endif
+/*===========================================================================*/
+/* Module inline functions. */
+/*===========================================================================*/
+
+static inline void intc_init(void) {
+
+ INTC_MCR = 0;
+ INTC_CPR = 0;
+ INTC_IACKR = (uint32_t)_vectors;
+}
+
#endif /* _VECTORS_H_ */
/** @} */
|