summaryrefslogtreecommitdiff
path: root/nuttx/arch/mips/src/pic32mx
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/mips/src/pic32mx')
-rw-r--r--nuttx/arch/mips/src/pic32mx/pic32mx-config.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/nuttx/arch/mips/src/pic32mx/pic32mx-config.h b/nuttx/arch/mips/src/pic32mx/pic32mx-config.h
index 4dd0a150e..d64caf5fb 100644
--- a/nuttx/arch/mips/src/pic32mx/pic32mx-config.h
+++ b/nuttx/arch/mips/src/pic32mx/pic32mx-config.h
@@ -1,7 +1,7 @@
/************************************************************************************
* arch/mips/src/pic32mx/pic32mx-config.h
*
- * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2011-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -485,15 +485,17 @@
#endif
/* SYS calls ************************************************************************/
-/* SYS call 0 and 1 are defined for internal use by the PIC32MX port (see
- * arch/mips/include/mips32/syscall.h
+/* SYS call 1 and 2 are defined for internal use by the PIC32MX port (see
+ * arch/mips/include/mips32/syscall.h). In addition, SYS call 3 is the return from
+ * a SYS call in kernel mode. The first four syscall values must, therefore, be
+ * reserved (0 is not used).
*/
#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"
+# if !defined(CONFIG_SYS_RESERVED) || CONFIG_SYS_RESERVED < 4
+# error "CONFIG_SYS_RESERVED must be defined to be 4 for a kernel build"
+# elif CONFIG_SYS_RESERVED > 4
+# warning "CONFIG_SYS_RESERVED should be defined to be 4 for a kernel build"
# endif
#endif