summaryrefslogtreecommitdiff
path: root/nuttx/arch/mips/src/pic32mx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-05-22 17:56:57 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-05-22 17:56:57 +0000
commit4398827512c7ac58e962ca2495b0b96bf30dbabe (patch)
tree5e91a6490e00ce12b781e9a246ab896b7b15bde5 /nuttx/arch/mips/src/pic32mx
parent1d8f60792331e913c6c4cd3bf3d6b785359778ee (diff)
downloadpx4-nuttx-4398827512c7ac58e962ca2495b0b96bf30dbabe.tar.gz
px4-nuttx-4398827512c7ac58e962ca2495b0b96bf30dbabe.tar.bz2
px4-nuttx-4398827512c7ac58e962ca2495b0b96bf30dbabe.zip
Fix for clean PIC32 compile with DEBUG on
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3639 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/mips/src/pic32mx')
-rwxr-xr-xnuttx/arch/mips/src/pic32mx/pic32mx-config.h13
-rw-r--r--nuttx/arch/mips/src/pic32mx/pic32mx-dobev.c3
2 files changed, 16 insertions, 0 deletions
diff --git a/nuttx/arch/mips/src/pic32mx/pic32mx-config.h b/nuttx/arch/mips/src/pic32mx/pic32mx-config.h
index 279ff1a46..03ac6fa63 100755
--- a/nuttx/arch/mips/src/pic32mx/pic32mx-config.h
+++ b/nuttx/arch/mips/src/pic32mx/pic32mx-config.h
@@ -484,6 +484,19 @@
# error "CONFIG_PIC32MX_USBPRIO is too large"
#endif
+/* SYS calls ************************************************************************/
+/* SYS call 0 and 1 are defined for internal use by the PIC32MX port (see
+ * arch/mips/include/mips32/syscall.h
+ */
+
+#ifdef CONFIG_NUTTX_KERNEL
+# if !defined(CONFIG_SYS_RESERVED) || CONFIG_SYS_RESERVED < 2
+# error "CONFIG_SYS_RESERVED must be defined to be 2 for a kernel build"
+# elif CONFIG_SYS_RESERVED > 2
+# warning "CONFIG_SYS_RESERVED should be defined to be 2 for a kernel build"
+# endif
+#endif
+
/* UARTs ****************************************************************************/
/* Don't enable UARTs not supported by the chip. */
diff --git a/nuttx/arch/mips/src/pic32mx/pic32mx-dobev.c b/nuttx/arch/mips/src/pic32mx/pic32mx-dobev.c
index cd12cf40a..5107a0962 100644
--- a/nuttx/arch/mips/src/pic32mx/pic32mx-dobev.c
+++ b/nuttx/arch/mips/src/pic32mx/pic32mx-dobev.c
@@ -41,10 +41,13 @@
#include <stdint.h>
#include <assert.h>
+#include <debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
+
#include <arch/board/board.h>
+#include <arch/pic32mx/cp0.h>
#include "up_arch.h"
#include "os_internal.h"