summaryrefslogtreecommitdiffstats
path: root/arch/riscv/kernel/syscall_table.c
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2017-12-26 19:11:22 -0800
committerPalmer Dabbelt <palmer@dabbelt.com>2018-01-07 15:14:37 -0800
commit9e49a4ed072ab67b17238c5a45d7cba7f848659e (patch)
tree16006725ba7697d6fa4fcecd0954e7e646b46216 /arch/riscv/kernel/syscall_table.c
parent33c57c0d3c67f51f491a9d27108f7e97adc03d96 (diff)
downloadlinux-9e49a4ed072ab67b17238c5a45d7cba7f848659e.tar.gz
linux-9e49a4ed072ab67b17238c5a45d7cba7f848659e.tar.bz2
linux-9e49a4ed072ab67b17238c5a45d7cba7f848659e.zip
RISC-V: Make __NR_riscv_flush_icache visible to userspace
We were hoping to avoid making this visible to userspace, but it looks like we're going to have to because QEMU's user-mode emulation doesn't want to emulate a vDSO. Having vDSO-only system calls was a bit unothodox anyway, so I think in this case it's OK to just make the actual system call number public. This patch simply moves the definition of __NR_riscv_flush_icache availiable to userspace, which results in the deletion of the now empty vdso-syscalls.h. Changes since v1: * I've moved the definition into uapi/asm/syscalls.h rathen than uapi/asm/unistd.h. This allows me to keep asm/unistd.h, so we can keep the syscall table macros sane. * As a side effect of the above, this no longer disables all system calls on RISC-V. Whoops! Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv/kernel/syscall_table.c')
-rw-r--r--arch/riscv/kernel/syscall_table.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/riscv/kernel/syscall_table.c b/arch/riscv/kernel/syscall_table.c
index a5bd6401f95e..ade52b903a43 100644
--- a/arch/riscv/kernel/syscall_table.c
+++ b/arch/riscv/kernel/syscall_table.c
@@ -23,5 +23,4 @@
void *sys_call_table[__NR_syscalls] = {
[0 ... __NR_syscalls - 1] = sys_ni_syscall,
#include <asm/unistd.h>
-#include <asm/vdso-syscalls.h>
};