Skip to content

Commit d4c08b9

Browse files
committed
riscv: Use latest system call ABI
We don't yet have an upstream glibc port for riscv, so there is no user space for the existing ABI, and we can remove the definitions for 32-bit time_t, off_t and struct resource and system calls based on them, including the vdso. Reviewed-by: Palmer Dabbelt <palmer@sifive.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 1d5b823 commit d4c08b9

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

arch/riscv/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ config 32BIT
1111

1212
config RISCV
1313
def_bool y
14-
select ARCH_32BIT_OFF_T if !64BIT
1514
# even on 32-bit, physical (and DMA) addresses are > 32-bits
1615
select PHYS_ADDR_T_64BIT
1716
select OF

arch/riscv/include/uapi/asm/unistd.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,8 @@
1717

1818
#ifdef __LP64__
1919
#define __ARCH_WANT_NEW_STAT
20-
#endif /* __LP64__ */
2120
#define __ARCH_WANT_SET_GET_RLIMIT
22-
#ifndef __LP64__
23-
#define __ARCH_WANT_TIME32_SYSCALLS
24-
#endif
21+
#endif /* __LP64__ */
2522

2623
#include <asm-generic/unistd.h>
2724

arch/riscv/kernel/vdso/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
# Symbols present in the vdso
44
vdso-syms = rt_sigreturn
5+
ifdef CONFIG_64BIT
56
vdso-syms += gettimeofday
67
vdso-syms += clock_gettime
78
vdso-syms += clock_getres
9+
endif
810
vdso-syms += getcpu
911
vdso-syms += flush_icache
1012

0 commit comments

Comments
 (0)