Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9129854ybi; Tue, 23 Jul 2019 22:26:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqz28dH3a3IW11LO+LnbllpVyb+K1+6kvcnSdRaq6Y/f/NzwHIF4MOHC3d3v4ydQqlKdTZal X-Received: by 2002:a65:430b:: with SMTP id j11mr78305454pgq.383.1563946003771; Tue, 23 Jul 2019 22:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563946003; cv=none; d=google.com; s=arc-20160816; b=Gnay0I4F3vdlIl191LH8LhN0aJoUBdyNvbOXVXRunCLSNH8TBlZ/B8Cgg72QlV2AG4 NmdUzJssB2o1irCj/GvvkLAGbHveJZswLhkXCO4F40Dp1ZL3qzgQaEXnI+ln92syELNg Z+6A+K6lCUrjrN5aLMcHOqRUHeKuE3KoqiZj2mPcNVXb636EpikLNAG9sdZSCBl0ztyk nadQ9ixTeQlyp9pZ4RME1EeLmRXwBwac/5O1sXAwdJA9swqselu3m321yu3s2kEtXjG7 Yb6jsqU5MQdDqaVD5BIi0KOjNdplq6J9rRNfH2jG4Fq04aQqG3vLagqttXXGFhPtMVI/ 8AYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from; bh=4pR4MvwB97ZL54fN9Bze61nH4AXZ63GTbIrdieNGhvQ=; b=BQUnpMBAuFoiurKmCJM2RdBP+z62aiCjY13cPSBma3VK9eNOpv2btD3YUDJNJv0Bwb m1TZUMQ0guVW7vxOb5OS50F8IEyPeZBSEBMmgwyRvOQsDGqwHmFFNcaqKnlkzSPSnhiA g515KvFFCVUPmVpJKUOSqTeaTqDDm4+zdCIscL1cUAMIvK3AU7e0jTLTZbUN/SctXobX ck9YcrVGstVcIuO2asGPBSrC9wNfP8+ibCsv11CRgQUwn3Imzwrp1R6wKY8VnMidtcWr 2pN0HhmQUWm0e/nqz39ouhzrIWp9TY1owkW8BsFTL5Rpgt1CEJYVO+ooUhvETYmyBe/W dgBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s64si15120122pgs.464.2019.07.23.22.26.28; Tue, 23 Jul 2019 22:26:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725909AbfGXFZW (ORCPT + 99 others); Wed, 24 Jul 2019 01:25:22 -0400 Received: from ispman.iskranet.ru ([62.213.33.10]:38342 "EHLO ispman.iskranet.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725813AbfGXFZW (ORCPT ); Wed, 24 Jul 2019 01:25:22 -0400 Received: by ispman.iskranet.ru (Postfix, from userid 8) id 9252E8217E2; Wed, 24 Jul 2019 12:25:19 +0700 (KRAT) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ispman.iskranet.ru X-Spam-Level: X-Spam-Status: No, score=-1.0 required=4.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.3.2 Received: from KB016249 (unknown [62.213.40.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ispman.iskranet.ru (Postfix) with ESMTPS id E31798217E2; Wed, 24 Jul 2019 12:25:18 +0700 (KRAT) From: Arseny Solokha To: christian@brauner.io Cc: linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, mpe@ellerman.id.au Subject: Re: [PATCH] powerpc: Wire up clone3 syscall In-Reply-To: <20190722133701.g3w5g4crogqb7oi5@brauner.io> References: <20190722133701.g3w5g4crogqb7oi5@brauner.io> Date: Wed, 24 Jul 2019 12:25:14 +0700 Message-ID: <87ftmwknr9.fsf@kb.kras.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, may I also ask to provide ppc_clone3 symbol also for 32-bit powerpc? Otherwise Michael's patch breaks build for me: 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