aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-12-05 11:27:27 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-12-05 11:27:27 +0000
commit6c57849d532dc63ade01d96c1a1a32ce53d7be18 (patch)
treeb31a70c0e780391213b4f34bd78472ddf90058c3 /os
parenta2e05803e4c2640817b59b16f2ea5b7847bc8610 (diff)
downloadChibiOS-6c57849d532dc63ade01d96c1a1a32ce53d7be18.tar.gz
ChibiOS-6c57849d532dc63ade01d96c1a1a32ce53d7be18.tar.bz2
ChibiOS-6c57849d532dc63ade01d96c1a1a32ce53d7be18.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6557 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/common/ports/e200/compilers/GCC/vectors.h18
-rw-r--r--os/hal/boards/ST_EVB_SPC56EL/board.h2
-rw-r--r--os/rt/ports/e200/compilers/GCC/ivor.s (renamed from os/common/ports/e200/compilers/GCC/ivor.s)2
-rw-r--r--os/rt/ports/e200/compilers/GCC/mk/port_spc56elxx.mk4
4 files changed, 22 insertions, 4 deletions
diff --git a/os/common/ports/e200/compilers/GCC/vectors.h b/os/common/ports/e200/compilers/GCC/vectors.h
index ce175e652..60241864e 100644
--- a/os/common/ports/e200/compilers/GCC/vectors.h
+++ b/os/common/ports/e200/compilers/GCC/vectors.h
@@ -35,10 +35,16 @@
/* Module constants. */
/*===========================================================================*/
+/* The following code is not processed when the file is included from an
+ asm module.*/
+#if !defined(_FROM_ASM_)
+
#define INTC_MCR *((volatile uint32_t *)0xfff48000)
#define INTC_CPR *((volatile uint32_t *)0xfff48008)
#define INTC_IACKR *((volatile uint32_t *)0xfff48010)
+#endif /* !defined(_FROM_ASM_) */
+
/*===========================================================================*/
/* Module pre-compile time settings. */
/*===========================================================================*/
@@ -59,6 +65,10 @@
/* External declarations. */
/*===========================================================================*/
+/* The following code is not processed when the file is included from an
+ asm module.*/
+#if !defined(_FROM_ASM_)
+
#if !defined(__DOXYGEN__)
extern uint32_t _vectors[PPC_NUM_VECTORS];
#endif
@@ -71,10 +81,16 @@ extern "C" {
}
#endif
+#endif /* !defined(_FROM_ASM_) */
+
/*===========================================================================*/
/* Module inline functions. */
/*===========================================================================*/
+/* The following code is not processed when the file is included from an
+ asm module.*/
+#if !defined(_FROM_ASM_)
+
static inline void intc_init(void) {
INTC_MCR = 0;
@@ -82,6 +98,8 @@ static inline void intc_init(void) {
INTC_IACKR = (uint32_t)_vectors;
}
+#endif /* !defined(_FROM_ASM_) */
+
#endif /* _VECTORS_H_ */
/** @} */
diff --git a/os/hal/boards/ST_EVB_SPC56EL/board.h b/os/hal/boards/ST_EVB_SPC56EL/board.h
index 5c64e99bb..d6bc39115 100644
--- a/os/hal/boards/ST_EVB_SPC56EL/board.h
+++ b/os/hal/boards/ST_EVB_SPC56EL/board.h
@@ -18,7 +18,7 @@
#define _BOARD_H_
/*
- * Setup for a generic SPC560Pxx proto board.
+ * Setup for a generic SPC56ELxx proto board.
*/
/*
diff --git a/os/common/ports/e200/compilers/GCC/ivor.s b/os/rt/ports/e200/compilers/GCC/ivor.s
index 6d24c0b30..f26917252 100644
--- a/os/common/ports/e200/compilers/GCC/ivor.s
+++ b/os/rt/ports/e200/compilers/GCC/ivor.s
@@ -19,7 +19,7 @@
*/
/**
- * @file PPC/ivor.s
+ * @file ivor.s
* @brief Kernel ISRs.
*
* @addtogroup PPC_CORE
diff --git a/os/rt/ports/e200/compilers/GCC/mk/port_spc56elxx.mk b/os/rt/ports/e200/compilers/GCC/mk/port_spc56elxx.mk
index 1237ad3f4..adf2d5cb8 100644
--- a/os/rt/ports/e200/compilers/GCC/mk/port_spc56elxx.mk
+++ b/os/rt/ports/e200/compilers/GCC/mk/port_spc56elxx.mk
@@ -3,8 +3,8 @@ PORTSRC = ${CHIBIOS}/os/rt/ports/e200/chcore.c
PORTASM = $(CHIBIOS)/os/common/ports/e200/devices/SPC56ELxx/boot.s \
$(CHIBIOS)/os/common/ports/e200/compilers/GCC/vectors.s \
- $(CHIBIOS)/os/common/ports/e200/compilers/GCC/ivor.s \
- $(CHIBIOS)/os/common/ports/e200/compilers/GCC/crt0.s
+ $(CHIBIOS)/os/common/ports/e200/compilers/GCC/crt0.s \
+ $(CHIBIOS)/os/rt/ports/e200/compilers/GCC/ivor.s
PORTINC = ${CHIBIOS}/os/common/ports/e200/compilers/GCC \
${CHIBIOS}/os/common/ports/e200/devices/SPC56ELxx \