linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Guo Ren <guoren@kernel.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linux-arch <linux-arch@vger.kernel.org>,
	linux-s390 <linux-s390@vger.kernel.org>,
	Guo Ren <guoren@linux.alibaba.com>,
	Parisc List <linux-parisc@vger.kernel.org>,
	gregkh <gregkh@linuxfoundation.org>,
	Drew Fustini <drew@beagleboard.org>,
	Anup Patel <anup@brainfault.org>,
	Wang Junqiang <wangjunqiang@iscas.ac.cn>,
	the arch/x86 maintainers <x86@kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	linux-csky@vger.kernel.org,
	"open list:BROADCOM NVRAM DRIVER" <linux-mips@vger.kernel.org>,
	Palmer Dabbelt <palmer@dabbelt.com>,
	liush <liush@allwinnertech.com>,
	sparclinux <sparclinux@vger.kernel.org>,
	linux-riscv <linux-riscv@lists.infradead.org>,
	linuxppc-dev <linuxppc-dev@lists.ozlabs.org>,
	Christoph Hellwig <hch@lst.de>,
	Linux ARM <linux-arm-kernel@lists.infradead.org>,
	Wei Fu <wefu@redhat.com>
Subject: Re: [PATCH V6 16/20] riscv: compat: vdso: Add rv32 VDSO base code implementation
Date: Sat, 26 Feb 2022 00:07:04 +0800	[thread overview]
Message-ID: <CAJF2gTQtUonLQn+aRyf6f1Ei9o6wWCrjHXNkfa2rxKMEGuDw2g@mail.gmail.com> (raw)
In-Reply-To: <CAK8P3a0MtcB7YMWKZKvpcy4Txi4JTXT61KqFoKZOqhVP530oEA@mail.gmail.com>

On Fri, Feb 25, 2022 at 11:50 PM Arnd Bergmann <arnd@arndb.de> wrote:
>
> On Fri, Feb 25, 2022 at 4:42 PM Guo Ren <guoren@kernel.org> wrote:
> >
> > Hi Arnd & Palmer,
> >
> > Here is the new modified compat_vdso/Makefile, please have a look,
> > first. Then I would update it to v7:
> > ===========================================
> > # SPDX-License-Identifier: GPL-2.0-only
> > #
> > # Makefile for compat_vdso
> > #
> >
> > # Symbols present in the compat_vdso
> > compat_vdso-syms  = rt_sigreturn
> > compat_vdso-syms += getcpu
> > compat_vdso-syms += flush_icache
> >
> > ifdef CROSS_COMPILE_COMPAT
> >         COMPAT_CC := $(CROSS_COMPILE_COMPAT)gcc
> >         COMPAT_LD := $(CROSS_COMPILE_COMPAT)ld
> > else
> >         COMPAT_CC := $(CC)
> >         COMPAT_LD := $(LD)
> > endif
> >
> > COMPAT_CC_FLAGS := -march=rv32g -mabi=ilp32
> > COMPAT_LD_FLAGS := -melf32lriscv
>
> Have you come across a case in which a separate cross toolchain
> is required? If not, I would leave this out and just set the flags for the
> normal toolchain.
Okay

>
> I also think it would be a nicer split to build the two vdso variants
> as vdso64/vdso32 rather than vdso/compat_vdso. That way,
> the build procedure can be kept as close as possible to the
> native 32-bit build.
Yes, current native 32-bit vdso & 64-bit vdso use the same
vdso/Makfile. So, I think it could be another patch for this cleanup.

>
>         Arnd



-- 
Best Regards
 Guo Ren

ML: https://lore.kernel.org/linux-csky/

  reply	other threads:[~2022-02-25 16:07 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-24  8:53 [PATCH V6 00/20] riscv: compat: Add COMPAT mode support for rv64 guoren
2022-02-24  8:53 ` [PATCH V6 01/20] uapi: simplify __ARCH_FLOCK{,64}_PAD a little guoren
2022-02-24  8:53 ` [PATCH V6 02/20] uapi: always define F_GETLK64/F_SETLK64/F_SETLKW64 in fcntl.h guoren
2022-02-24  8:53 ` [PATCH V6 03/20] compat: consolidate the compat_flock{, 64} definition guoren
2022-02-24  8:53 ` [PATCH V6 04/20] kconfig: Add SYSVIPC_COMPAT for all architectures guoren
2022-02-24  8:53 ` [PATCH V6 05/20] fs: stat: compat: Add __ARCH_WANT_COMPAT_STAT guoren
2022-02-24  8:53 ` [PATCH V6 06/20] asm-generic: compat: Cleanup duplicate definitions guoren
2022-02-24  8:53 ` [PATCH V6 07/20] syscalls: compat: Fix the missing part for __SYSCALL_COMPAT guoren
2022-02-24  8:53 ` [PATCH V6 08/20] riscv: Fixup difference with defconfig guoren
2022-02-24  8:53 ` [PATCH V6 09/20] riscv: compat: Add basic compat data type implementation guoren
2022-02-24  8:54 ` [PATCH V6 10/20] riscv: compat: Re-implement TASK_SIZE for COMPAT_32BIT guoren
2022-02-24  8:54 ` [PATCH V6 11/20] riscv: compat: syscall: Add compat_sys_call_table implementation guoren
2022-02-24  9:31   ` Arnd Bergmann
2022-02-24 10:30     ` Guo Ren
2022-02-24  8:54 ` [PATCH V6 12/20] riscv: compat: syscall: Add entry.S implementation guoren
2022-02-24  8:54 ` [PATCH V6 13/20] riscv: compat: process: Add UXL_32 support in start_thread guoren
2022-02-24  8:54 ` [PATCH V6 14/20] riscv: compat: Add elf.h implementation guoren
2022-02-24  8:54 ` [PATCH V6 15/20] riscv: compat: Add hw capability check for elf guoren
2022-02-24  8:54 ` [PATCH V6 16/20] riscv: compat: vdso: Add rv32 VDSO base code implementation guoren
2022-02-24  9:13   ` Arnd Bergmann
2022-02-25 15:42     ` Guo Ren
2022-02-25 15:49       ` Arnd Bergmann
2022-02-25 16:07         ` Guo Ren [this message]
2022-02-24  8:54 ` [PATCH V6 17/20] riscv: compat: vdso: Add setup additional pages implementation guoren
2022-02-24 17:57   ` Palmer Dabbelt
2022-02-25  3:15     ` Guo Ren
2022-02-24  8:54 ` [PATCH V6 18/20] riscv: compat: signal: Add rt_frame implementation guoren
2022-02-24  8:54 ` [PATCH V6 19/20] riscv: compat: ptrace: Add compat_arch_ptrace implement guoren
2022-02-24  9:04   ` Arnd Bergmann
2022-02-24  8:54 ` [PATCH V6 20/20] riscv: compat: Add COMPAT Kbuild skeletal support guoren

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=CAJF2gTQtUonLQn+aRyf6f1Ei9o6wWCrjHXNkfa2rxKMEGuDw2g@mail.gmail.com \
    --to=guoren@kernel.org \
    --cc=anup@brainfault.org \
    --cc=arnd@arndb.de \
    --cc=drew@beagleboard.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=guoren@linux.alibaba.com \
    --cc=hch@lst.de \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-csky@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=linux-parisc@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=liush@allwinnertech.com \
    --cc=palmer@dabbelt.com \
    --cc=sparclinux@vger.kernel.org \
    --cc=wangjunqiang@iscas.ac.cn \
    --cc=wefu@redhat.com \
    --cc=x86@kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).