Can't used task_create() if address environments enabled
This commit is contained in:
parent
ad53cabf34
commit
a2463148fc
3 changed files with 16 additions and 6 deletions
|
|
@ -91,11 +91,19 @@
|
|||
#define SYS_sem_unlink (CONFIG_SYS_RESERVED+19)
|
||||
#define SYS_sem_wait (CONFIG_SYS_RESERVED+20)
|
||||
#define SYS_set_errno (CONFIG_SYS_RESERVED+21)
|
||||
#define SYS_task_create (CONFIG_SYS_RESERVED+22)
|
||||
#define SYS_task_delete (CONFIG_SYS_RESERVED+23)
|
||||
#define SYS_task_restart (CONFIG_SYS_RESERVED+24)
|
||||
#define SYS_up_assert (CONFIG_SYS_RESERVED+25)
|
||||
#define __SYS_vfork (CONFIG_SYS_RESERVED+26)
|
||||
|
||||
#ifndef CONFIG_ARCH_ADDRENV
|
||||
# define SYS_task_create (CONFIG_SYS_RESERVED+22)
|
||||
# define SYS_task_delete (CONFIG_SYS_RESERVED+23)
|
||||
# define SYS_task_restart (CONFIG_SYS_RESERVED+24)
|
||||
# define SYS_up_assert (CONFIG_SYS_RESERVED+25)
|
||||
# define __SYS_vfork (CONFIG_SYS_RESERVED+26)
|
||||
#else
|
||||
# define SYS_task_delete (CONFIG_SYS_RESERVED+22)
|
||||
# define SYS_task_restart (CONFIG_SYS_RESERVED+23)
|
||||
# define SYS_up_assert (CONFIG_SYS_RESERVED+24)
|
||||
# define __SYS_vfork (CONFIG_SYS_RESERVED+25)
|
||||
#endif
|
||||
|
||||
/* The following can be individually enabled */
|
||||
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@
|
|||
"stat","sys/stat.h","CONFIG_NFILE_DESCRIPTORS > 0","int","const char*","FAR struct stat*"
|
||||
#"statfs","stdio.h","","int","FAR const char*","FAR struct statfs*"
|
||||
"statfs","sys/statfs.h","CONFIG_NFILE_DESCRIPTORS > 0","int","const char*","struct statfs*"
|
||||
"task_create","sched.h","","int","const char*","int","int","main_t","FAR char * const []|FAR char * const *"
|
||||
"task_create","sched.h","!defined(CONFIG_ARCH_ADDRENV)","int","FAR const char*","int","int","main_t","FAR char * const []|FAR char * const *"
|
||||
#"task_create","sched.h","","int","const char*","int","main_t","FAR char * const []|FAR char * const *"
|
||||
"task_delete","sched.h","","int","pid_t"
|
||||
"task_restart","sched.h","","int","pid_t"
|
||||
|
|
|
|||
|
Can't render this file because it has a wrong number of fields in line 2.
|
|
|
@ -65,7 +65,9 @@ SYSCALL_LOOKUP(sem_trywait, 1, STUB_sem_trywait)
|
|||
SYSCALL_LOOKUP(sem_unlink, 1, STUB_sem_unlink)
|
||||
SYSCALL_LOOKUP(sem_wait, 1, STUB_sem_wait)
|
||||
SYSCALL_LOOKUP(set_errno, 1, STUB_set_errno)
|
||||
#ifndef CONFIG_ARCH_ADDRENV
|
||||
SYSCALL_LOOKUP(task_create, 5, STUB_task_create)
|
||||
#endif
|
||||
SYSCALL_LOOKUP(task_delete, 1, STUB_task_delete)
|
||||
SYSCALL_LOOKUP(task_restart, 1, STUB_task_restart)
|
||||
SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue