summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/armv7-m/svcall.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-06 19:56:32 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-06 19:56:32 +0000
commit7c2ea5a1a560284b6d22a60d62ac943ec6144096 (patch)
tree8d1191e3b5fe5cb9f0fe1319d45648d859060cae /nuttx/arch/arm/src/armv7-m/svcall.h
parent9e9de3d19ebf1890bfccd0bf63fa0209e2ec9359 (diff)
downloadpx4-nuttx-7c2ea5a1a560284b6d22a60d62ac943ec6144096.tar.gz
px4-nuttx-7c2ea5a1a560284b6d22a60d62ac943ec6144096.tar.bz2
px4-nuttx-7c2ea5a1a560284b6d22a60d62ac943ec6144096.zip
Fix some bad syscall dispatching log. This change is not testable until these is a tested NuttX kernel build.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5713 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/armv7-m/svcall.h')
-rw-r--r--nuttx/arch/arm/src/armv7-m/svcall.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/nuttx/arch/arm/src/armv7-m/svcall.h b/nuttx/arch/arm/src/armv7-m/svcall.h
index 675829799..13b9935a0 100644
--- a/nuttx/arch/arm/src/armv7-m/svcall.h
+++ b/nuttx/arch/arm/src/armv7-m/svcall.h
@@ -1,7 +1,7 @@
/************************************************************************************
* arch/arm/src/armv7-m/svcall.h
*
- * Copyright (C) 2011 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
@@ -51,15 +51,15 @@
************************************************************************************/
/* Configuration ********************************************************************/
-/* This logic uses three system calls {0,1,2} for context switching. The first three
- * syscall values must be reserved.
+/* This logic uses three system calls {0,1,2} for context switching and one for the
+ * syscall return. The first four syscall values must be reserved.
*/
#ifdef CONFIG_NUTTX_KERNEL
# ifndef CONFIG_SYS_RESERVED
-# error "CONFIG_SYS_RESERVED must be defined to the value 3"
-# elif CONFIG_SYS_RESERVED != 3
-# error "CONFIG_SYS_RESERVED must have the value 3"
+# error "CONFIG_SYS_RESERVED must be defined to the value 4"
+# elif CONFIG_SYS_RESERVED != 4
+# error "CONFIG_SYS_RESERVED must have the value 4"
# endif
#endif
@@ -86,6 +86,15 @@
#define SYS_switch_context (2)
+#ifdef CONFIG_NUTTX_KERNEL
+/* SYS call 3:
+ *
+ * void up_syscall_return(void);
+ */
+
+#define SYS_syscall_return (3)
+#endif
+
/************************************************************************************
* Inline Functions
************************************************************************************/