Commit bb1d2a94 authored by Jesper Nilsson's avatar Jesper Nilsson

CRIS: Add missing syscalls

Complete list of syscalls for CRISv10 and CRISv32.
Clean up some whitespace at the same time.
Signed-off-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
parent 329fddd7
This diff is collapsed.
...@@ -424,7 +424,7 @@ nmi_interrupt: ...@@ -424,7 +424,7 @@ nmi_interrupt:
bpl 1f bpl 1f
nop nop
jsr handle_watchdog_bite ; In time.c. jsr handle_watchdog_bite ; In time.c.
move.d $sp, $r10 ; Pointer to registers move.d $sp, $r10 ; Pointer to registers
1: btstq REG_BIT(intr_vect, r_nmi, ext), $r0 1: btstq REG_BIT(intr_vect, r_nmi, ext), $r0
bpl 1f bpl 1f
nop nop
...@@ -452,7 +452,7 @@ spurious_interrupt: ...@@ -452,7 +452,7 @@ spurious_interrupt:
nop nop
;; This handles the case when multiple interrupts arrive at the same ;; This handles the case when multiple interrupts arrive at the same
;; time. Jump to the first set interrupt bit in a priotiry fashion. The ;; time. Jump to the first set interrupt bit in a priority fashion. The
;; hardware will call the unserved interrupts after the handler ;; hardware will call the unserved interrupts after the handler
;; finishes. ;; finishes.
.type multiple_interrupt, @function .type multiple_interrupt, @function
...@@ -885,13 +885,29 @@ sys_call_table: ...@@ -885,13 +885,29 @@ sys_call_table:
.long sys_preadv .long sys_preadv
.long sys_pwritev .long sys_pwritev
.long sys_setns /* 335 */ .long sys_setns /* 335 */
.long sys_name_to_handle_at
/* .long sys_open_by_handle_at
* NOTE!! This doesn't have to be exact - we just have .long sys_rt_tgsigqueueinfo
* to make sure we have _enough_ of the "sys_ni_syscall" .long sys_perf_event_open
* entries. Don't panic if you notice that this hasn't .long sys_recvmmsg /* 340 */
* been shrunk every time we add a new system call. .long sys_accept4
*/ .long sys_fanotify_init
.long sys_fanotify_mark
.long sys_prlimit64
.long sys_clock_adjtime /* 345 */
.long sys_syncfs
.long sys_sendmmsg
.long sys_process_vm_readv
.long sys_process_vm_writev
.long sys_kcmp /* 350 */
.long sys_finit_module
/*
* NOTE!! This doesn't have to be exact - we just have
* to make sure we have _enough_ of the "sys_ni_syscall"
* entries. Don't panic if you notice that this hasn't
* been shrunk every time we add a new system call.
*/
.rept NR_syscalls - (.-sys_call_table) / 4 .rept NR_syscalls - (.-sys_call_table) / 4
.long sys_ni_syscall .long sys_ni_syscall
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include <uapi/asm/unistd.h> #include <uapi/asm/unistd.h>
#define NR_syscalls 336 #define NR_syscalls 360
#include <arch/unistd.h> #include <arch/unistd.h>
......
...@@ -340,5 +340,21 @@ ...@@ -340,5 +340,21 @@
#define __NR_preadv 333 #define __NR_preadv 333
#define __NR_pwritev 334 #define __NR_pwritev 334
#define __NR_setns 335 #define __NR_setns 335
#define __NR_name_to_handle_at 336
#define __NR_open_by_handle_at 337
#define __NR_rt_tgsigqueueinfo 338
#define __NR_perf_event_open 339
#define __NR_recvmmsg 340
#define __NR_accept4 341
#define __NR_fanotify_init 342
#define __NR_fanotify_mark 343
#define __NR_prlimit64 344
#define __NR_clock_adjtime 345
#define __NR_syncfs 346
#define __NR_sendmmsg 347
#define __NR_process_vm_readv 348
#define __NR_process_vm_writev 349
#define __NR_kcmp 350
#define __NR_finit_module 351
#endif /* _UAPI_ASM_CRIS_UNISTD_H_ */ #endif /* _UAPI_ASM_CRIS_UNISTD_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment