Skip to content

Commit

Permalink
libc: Implement call gate nx_exit()
Browse files Browse the repository at this point in the history
nx_exit performs the cleanup functions, but it needs a call gate for
BUILD_PROTECTED/BUILD_KERNEL.
  • Loading branch information
pussuw committed May 5, 2022
1 parent 16afdb4 commit cb19ef1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/sys/syscall_lookup.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
*/

SYSCALL_LOOKUP1(_exit, 1)
SYSCALL_LOOKUP(nx_exit, 1)
SYSCALL_LOOKUP(getpid, 0)
SYSCALL_LOOKUP(gettid, 0)

Expand Down
1 change: 1 addition & 0 deletions syscall/syscall.csv
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"nx_vsyslog","nuttx/syslog/syslog.h","","int","int","FAR const IPTR char *","FAR va_list *"
"nxsched_get_stackinfo","nuttx/sched.h","","int","pid_t","FAR struct stackinfo_s *"
"nxsched_get_streams","nuttx/sched.h","defined(CONFIG_FILE_STREAM)","FAR struct streamlist *"
"nx_exit","nuttx/sched.h","","noreturn","int"
"open","fcntl.h","","int","FAR const char *","int","...","mode_t"
"opendir","dirent.h","","FAR DIR *","FAR const char *"
"pgalloc", "nuttx/arch.h", "defined(CONFIG_BUILD_KERNEL)", "uintptr_t", "uintptr_t", "unsigned int"
Expand Down

0 comments on commit cb19ef1

Please sign in to comment.