From: Christian Brauner <christian@brauner.io>
To: Arseny Solokha <asolokha@kb.kras.ru>
Cc: linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] powerpc: Wire up clone3 syscall
Date: Wed, 24 Jul 2019 11:31:34 +0200 [thread overview]
Message-ID: <20190724093132.orflnhvyiff75yrd@brauner.io> (raw)
In-Reply-To: <87ftmwknr9.fsf@kb.kras.ru>
On Wed, Jul 24, 2019 at 12:25:14PM +0700, Arseny Solokha wrote:
> Hi,
>
> may I also ask to provide ppc_clone3 symbol also for 32-bit powerpc? Otherwise
> Michael's patch breaks build for me:
Makes sense. Michael, are you planning on picking this up? :)
Christian
>
> powerpc-e500v2-linux-gnuspe-ld: arch/powerpc/kernel/systbl.o: in function `sys_call_table':
> (.rodata+0x6cc): undefined reference to `ppc_clone3'
> make: *** [Makefile:1060: vmlinux] Error 1
>
> The patch was tested using Christian's program on a real e500 machine.
>
> --- a/arch/powerpc/kernel/entry_32.S
> +++ b/arch/powerpc/kernel/entry_32.S
> @@ -597,6 +597,14 @@ ppc_clone:
> stw r0,_TRAP(r1) /* register set saved */
> b sys_clone
>
> + .globl ppc_clone3
> +ppc_clone3:
> + SAVE_NVGPRS(r1)
> + lwz r0,_TRAP(r1)
> + rlwinm r0,r0,0,0,30 /* clear LSB to indicate full */
> + stw r0,_TRAP(r1) /* register set saved */
> + b sys_clone3
> +
> .globl ppc_swapcontext
> ppc_swapcontext:
> SAVE_NVGPRS(r1)
>
> I don't think this trivial hunk deserves a separate patch submission.
>
> Thanks,
> Arseny
next prev parent reply other threads:[~2019-07-24 9:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-22 13:22 [PATCH] powerpc: Wire up clone3 syscall Michael Ellerman
2019-07-22 13:37 ` Christian Brauner
2019-07-24 5:25 ` Arseny Solokha
2019-07-24 9:31 ` Christian Brauner [this message]
2019-07-24 14:00 ` Michael Ellerman
2019-07-24 14:06 ` Michael Ellerman
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=20190724093132.orflnhvyiff75yrd@brauner.io \
--to=christian@brauner.io \
--cc=asolokha@kb.kras.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.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).