All of lore.kernel.org
 help / color / mirror / Atom feed
From: Palmer Dabbelt <palmer@sifive.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linux-arch@vger.kernel.org,
	uclinux-h8-devel@lists.sourceforge.jp, yury.norov@gmail.com,
	y2038@lists.linaro.org, linux-api@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org,
	Vineet Gupta <vgupta@synopsys.com>, Guo Ren <guoren@kernel.org>,
	Greentime Hu <green.hu@gmail.com>,
	linux-hexagon@vger.kernel.org,
	Thomas Gleixner <tglx@linutronix.de>,
	Guan Xuetao <gxt@pku.edu.cn>, Stafford Horne <shorne@gmail.com>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 8/8] riscv: Use latest system call ABI
Date: Mon, 25 Feb 2019 11:19:11 -0800	[thread overview]
Message-ID: <CANs6eMkY09Q-5m0venYjuu5zbuGhPpH23VuGw8Ct_nc0m7aVTg@mail.gmail.com> (raw)
In-Reply-To: <20190218210712.3503891-9-arnd@arndb.de>

On Mon, Feb 18, 2019 at 1:07 PM Arnd Bergmann <arnd@arndb.de> wrote:

> 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.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  arch/riscv/Kconfig                   | 1 -
>  arch/riscv/include/uapi/asm/unistd.h | 5 +----
>  arch/riscv/kernel/vdso/Makefile      | 2 ++
>  3 files changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> index 09fa3a87bf30..feeeaa60697c 100644
> --- a/arch/riscv/Kconfig
> +++ b/arch/riscv/Kconfig
> @@ -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
> diff --git a/arch/riscv/include/uapi/asm/unistd.h
> b/arch/riscv/include/uapi/asm/unistd.h
> index 486a288b454c..0e2eeeb1fd27 100644
> --- a/arch/riscv/include/uapi/asm/unistd.h
> +++ b/arch/riscv/include/uapi/asm/unistd.h
> @@ -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>
>
> diff --git a/arch/riscv/kernel/vdso/Makefile
> b/arch/riscv/kernel/vdso/Makefile
> index eed1c137f618..fec62b24df89 100644
> --- a/arch/riscv/kernel/vdso/Makefile
> +++ b/arch/riscv/kernel/vdso/Makefile
> @@ -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
>
> --
> 2.20.0
>

Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
_______________________________________________
Y2038 mailing list
Y2038@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/y2038

      reply	other threads:[~2019-02-25 19:19 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-18 21:07 [PATCH 0/8] y2038: remove time32 ABI on rv32 and csky Arnd Bergmann
2019-02-18 21:07 ` Arnd Bergmann
2019-02-18 21:07 ` Arnd Bergmann
2019-02-18 21:07 ` Arnd Bergmann
2019-02-18 21:07 ` [PATCH 1/8] compat ABI: use non-compat openat and open_by_handle_at variants Arnd Bergmann
2019-02-18 21:07   ` Arnd Bergmann
2019-02-18 21:07   ` Arnd Bergmann
2019-02-18 21:07 ` [PATCH 2/8] 32-bit userspace ABI: introduce ARCH_32BIT_OFF_T config option Arnd Bergmann
2019-02-18 21:07   ` Arnd Bergmann
2019-02-18 21:07   ` Arnd Bergmann
2019-02-19  8:56   ` Geert Uytterhoeven
2019-02-19  8:56     ` Geert Uytterhoeven
2019-02-19  8:56     ` Geert Uytterhoeven
2019-02-19  8:56     ` Geert Uytterhoeven
2019-02-19  9:10     ` Arnd Bergmann
2019-02-19  9:10       ` Arnd Bergmann
2019-02-19  9:10       ` Arnd Bergmann
2019-02-19  9:10       ` Arnd Bergmann
2019-02-18 21:07 ` [PATCH 3/8] asm-generic: Drop getrlimit and setrlimit syscalls from default list Arnd Bergmann
2019-02-18 21:07   ` Arnd Bergmann
2019-02-18 21:07   ` Arnd Bergmann
2019-02-18 21:07 ` [PATCH 4/8] asm-generic: Make time32 syscall numbers optional Arnd Bergmann
2019-02-18 21:07   ` Arnd Bergmann
2019-02-18 21:07   ` Arnd Bergmann
2019-02-19 20:06   ` Geert Uytterhoeven
2019-02-19 20:06     ` Geert Uytterhoeven
2019-02-19 20:06     ` Geert Uytterhoeven
2019-02-19 20:06     ` Geert Uytterhoeven
2019-02-19 20:06     ` Geert Uytterhoeven
2019-02-19 20:29     ` Arnd Bergmann
2019-02-19 20:29       ` Arnd Bergmann
2019-02-19 20:29       ` Arnd Bergmann
2019-02-19 20:29       ` Arnd Bergmann
2019-02-18 21:07 ` [PATCH 5/8] unicore32: Fix __ARCH_WANT_STAT64 definition Arnd Bergmann
2019-02-18 21:07   ` Arnd Bergmann
2019-02-18 21:07   ` Arnd Bergmann
2019-02-18 21:07   ` Arnd Bergmann
2019-02-18 21:07 ` [PATCH 6/8] checksyscalls: fix up mq_timedreceive and stat exceptions Arnd Bergmann
2019-02-18 21:07   ` Arnd Bergmann
2019-02-18 21:07   ` Arnd Bergmann
2019-02-18 21:07 ` [PATCH 7/8] csky: Use latest system call ABI Arnd Bergmann
2019-02-18 21:07   ` Arnd Bergmann
2019-02-18 21:07   ` Arnd Bergmann
2019-02-18 21:07   ` Arnd Bergmann
2019-02-18 22:40   ` Joseph Myers
2019-02-18 22:40     ` Joseph Myers
2019-02-18 22:40     ` Joseph Myers
2019-02-18 22:40     ` Joseph Myers
2019-02-19  2:18   ` Guo Ren
2019-02-19  2:18     ` Guo Ren
2019-02-19  2:18     ` Guo Ren
2019-02-19  9:03     ` Arnd Bergmann
2019-02-19  9:03       ` Arnd Bergmann
2019-02-19  9:03       ` Arnd Bergmann
2019-02-19  9:03       ` Arnd Bergmann
2019-02-18 21:07 ` [PATCH 8/8] riscv: " Arnd Bergmann
2019-02-18 21:07   ` Arnd Bergmann
2019-02-18 21:07   ` Arnd Bergmann
2019-02-18 21:07   ` Arnd Bergmann
2019-02-25 19:19   ` Palmer Dabbelt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CANs6eMkY09Q-5m0venYjuu5zbuGhPpH23VuGw8Ct_nc0m7aVTg@mail.gmail.com \
    --to=palmer@sifive.com \
    --cc=arnd@arndb.de \
    --cc=green.hu@gmail.com \
    --cc=guoren@kernel.org \
    --cc=gxt@pku.edu.cn \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-hexagon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=shorne@gmail.com \
    --cc=tglx@linutronix.de \
    --cc=uclinux-h8-devel@lists.sourceforge.jp \
    --cc=vgupta@synopsys.com \
    --cc=y2038@lists.linaro.org \
    --cc=yury.norov@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.