Skip to content

Commit

Permalink
riscv: Use latest system call ABI
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
  • Loading branch information
arndb committed Feb 25, 2019
1 parent 1d5b823 commit d4c08b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion arch/riscv/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ config 32BIT

config RISCV
def_bool y
select ARCH_32BIT_OFF_T if !64BIT
# even on 32-bit, physical (and DMA) addresses are > 32-bits
select PHYS_ADDR_T_64BIT
select OF
Expand Down
5 changes: 1 addition & 4 deletions arch/riscv/include/uapi/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,8 @@

#ifdef __LP64__
#define __ARCH_WANT_NEW_STAT
#endif /* __LP64__ */
#define __ARCH_WANT_SET_GET_RLIMIT
#ifndef __LP64__
#define __ARCH_WANT_TIME32_SYSCALLS
#endif
#endif /* __LP64__ */

#include <asm-generic/unistd.h>

Expand Down
2 changes: 2 additions & 0 deletions arch/riscv/kernel/vdso/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

# Symbols present in the vdso
vdso-syms = rt_sigreturn
ifdef CONFIG_64BIT
vdso-syms += gettimeofday
vdso-syms += clock_gettime
vdso-syms += clock_getres
endif
vdso-syms += getcpu
vdso-syms += flush_icache

Expand Down

0 comments on commit d4c08b9

Please sign in to comment.