diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-14 22:44:06 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-14 22:44:06 +0000 |
commit | 256ff9a480238dfd1d30b7dfb3d61835991b3ee7 (patch) | |
tree | 3c62d071240bc4d2f9df1cd127113b94d7fbf332 /nuttx/arch/arm/src/armv7-m/svcall.h | |
parent | c601d953ae2de87bc41d3666f6b510805bf4e67b (diff) | |
download | px4-nuttx-256ff9a480238dfd1d30b7dfb3d61835991b3ee7.tar.gz px4-nuttx-256ff9a480238dfd1d30b7dfb3d61835991b3ee7.tar.bz2 px4-nuttx-256ff9a480238dfd1d30b7dfb3d61835991b3ee7.zip |
Switch to user-mode before starting a new task
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5742 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.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/armv7-m/svcall.h b/nuttx/arch/arm/src/armv7-m/svcall.h index 13b9935a0..f6b068f86 100644 --- a/nuttx/arch/arm/src/armv7-m/svcall.h +++ b/nuttx/arch/arm/src/armv7-m/svcall.h @@ -57,9 +57,9 @@ #ifdef CONFIG_NUTTX_KERNEL # ifndef CONFIG_SYS_RESERVED -# 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" +# error "CONFIG_SYS_RESERVED must be defined to the value 5" +# elif CONFIG_SYS_RESERVED != 5 +# error "CONFIG_SYS_RESERVED must have the value 5" # endif #endif @@ -93,6 +93,13 @@ */ #define SYS_syscall_return (3) + +/* SYS call 3: + * + * void up_task_start(main_t taskentry, int argc, FAR char *argv[]) noreturn_function; + */ + +#define SYS_task_start (4) #endif /************************************************************************************ |