diff options
author | Palmer Dabbelt <palmer@sifive.com> | 2017-12-01 13:12:10 -0800 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2017-12-01 13:12:10 -0800 |
commit | 07f8ba7439f9c942d5bd7b63074e7a1528601713 (patch) | |
tree | a9ea3bf949955e5808617e4b21372c0ed85bc009 /arch/riscv/include/asm/vdso-syscalls.h | |
parent | f8182f613c9887744eb469b1a3352636481cb395 (diff) | |
parent | 0e710ac6521f13c68a5c634471f40ae448c31e0a (diff) |
RISC-V: User-Visible Changes
This merge contains the user-visible, ABI-breaking changes that we want
to make sure we have in Linux before our first release. Highlights
include:
* VDSO entries for clock_get/gettimeofday/getcpu have been added. These
are simple syscalls now, but we want to let glibc use them from the
start so we can make them faster later.
* A VDSO entry for instruction cache flushing has been added so
userspace can flush the instruction cache.
* The VDSO symbol versions for __vdso_cmpxchg{32,64} have been removed,
as those VDSO entries don't actually exist.
Conflicts:
arch/riscv/include/asm/tlbflush.h
Diffstat (limited to 'arch/riscv/include/asm/vdso-syscalls.h')
-rw-r--r-- | arch/riscv/include/asm/vdso-syscalls.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/vdso-syscalls.h b/arch/riscv/include/asm/vdso-syscalls.h new file mode 100644 index 000000000000..a2ccf1894929 --- /dev/null +++ b/arch/riscv/include/asm/vdso-syscalls.h @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2017 SiFive + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef _ASM_RISCV_VDSO_SYSCALLS_H +#define _ASM_RISCV_VDSO_SYSCALLS_H + +#ifdef CONFIG_SMP + +/* These syscalls are only used by the vDSO and are not in the uapi. */ +#define __NR_riscv_flush_icache (__NR_arch_specific_syscall + 15) +__SYSCALL(__NR_riscv_flush_icache, sys_riscv_flush_icache) + +#endif + +#endif /* _ASM_RISCV_VDSO_H */ |