summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/kernel/entry.S
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2015-03-16 12:40:14 +0100
committerMax Filippov <jcmvbkbc@gmail.com>2017-05-01 16:00:10 +0200
commitf984409a00e7d9aa40af64d7c9619e5de3d980bf (patch)
tree5ea7712929934f428eba2d59abf3eda6e6532d2b /arch/xtensa/kernel/entry.S
parentxtensa: move internal ptrace definitions from uapi/asm to asm (diff)
downloadlinux-f984409a00e7d9aa40af64d7c9619e5de3d980bf.tar.xz
linux-f984409a00e7d9aa40af64d7c9619e5de3d980bf.zip
xtensa: use generic tracehooks
Use tracehook_report_syscall_{entry,exit} instead of a local copy of it in do_syscall_trace. Allow tracehook to cancel syscall by returning invalid syscall number to the system_call function. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/kernel/entry.S')
-rw-r--r--arch/xtensa/kernel/entry.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/xtensa/kernel/entry.S b/arch/xtensa/kernel/entry.S
index f5ef3cc0497c..37a239556889 100644
--- a/arch/xtensa/kernel/entry.S
+++ b/arch/xtensa/kernel/entry.S
@@ -1899,10 +1899,11 @@ ENTRY(system_call)
movi a4, do_syscall_trace_enter
s32i a3, a2, PT_SYSCALL
callx4 a4
+ mov a3, a6
/* syscall = sys_call_table[syscall_nr] */
- movi a4, sys_call_table;
+ movi a4, sys_call_table
movi a5, __NR_syscall_count
movi a6, -ENOSYS
bgeu a3, a5, 1f