aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-09-14 08:00:26 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-09-14 08:00:26 +0000
commitf4b73385582f468882abe2e49c02b8fd689b9f81 (patch)
tree3f88daded695c91a0f721bda922c514427849267 /os/ports
parent767f1a01b21d9b228e0035fb839cd859519034db (diff)
downloadChibiOS-f4b73385582f468882abe2e49c02b8fd689b9f81.tar.gz
ChibiOS-f4b73385582f468882abe2e49c02b8fd689b9f81.tar.bz2
ChibiOS-f4b73385582f468882abe2e49c02b8fd689b9f81.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4655 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports')
-rw-r--r--os/ports/GCC/PPC/SPC563Mxx/ivor.s8
-rw-r--r--os/ports/GCC/PPC/SPC563Mxx/vectors.s7
-rw-r--r--os/ports/GCC/PPC/chcore.h4
3 files changed, 14 insertions, 5 deletions
diff --git a/os/ports/GCC/PPC/SPC563Mxx/ivor.s b/os/ports/GCC/PPC/SPC563Mxx/ivor.s
index 34cfae43d..de937ef17 100644
--- a/os/ports/GCC/PPC/SPC563Mxx/ivor.s
+++ b/os/ports/GCC/PPC/SPC563Mxx/ivor.s
@@ -26,10 +26,12 @@
* @{
*/
+/*
+ * Imports the PPC configuration headers.
+ */
+#define _FROM_ASM_
#include "chconf.h"
-
-#define FALSE 0
-#define TRUE 1
+#include "chcore.h"
#if !defined(__DOXYGEN__)
/*
diff --git a/os/ports/GCC/PPC/SPC563Mxx/vectors.s b/os/ports/GCC/PPC/SPC563Mxx/vectors.s
index 32cf37942..c823244c8 100644
--- a/os/ports/GCC/PPC/SPC563Mxx/vectors.s
+++ b/os/ports/GCC/PPC/SPC563Mxx/vectors.s
@@ -26,6 +26,13 @@
* @{
*/
+/*
+ * Imports the PPC configuration headers.
+ */
+#define _FROM_ASM_
+#include "chconf.h"
+#include "chcore.h"
+
#if !defined(__DOXYGEN__)
/* BAM info, SWT off, WTE off, VLE from settings.*/
diff --git a/os/ports/GCC/PPC/chcore.h b/os/ports/GCC/PPC/chcore.h
index b0bf57017..ffdc32fe3 100644
--- a/os/ports/GCC/PPC/chcore.h
+++ b/os/ports/GCC/PPC/chcore.h
@@ -359,8 +359,8 @@ struct context {
* @details This port function is implemented as inlined code for performance
* reasons.
*/
-#if ENABLE_WFI_IDLE != 0
-#ifndef port_wait_for_interrupt
+#if PPC_ENABLE_WFI_IDLE
+#if !defined(port_wait_for_interrupt)
#define port_wait_for_interrupt() { \
asm volatile ("wait" : : : "memory"); \
}