Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4086455rwo; Mon, 24 Jul 2023 23:49:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlF9nKWrW599jAdHAZZJgHquIdSxs5LM8F7rYkViYc0Ry5xHHuL0KGLGe/+6NeYJ96UKXv79 X-Received: by 2002:a50:ef0b:0:b0:51d:d4c0:eea5 with SMTP id m11-20020a50ef0b000000b0051dd4c0eea5mr8658585eds.40.1690267773686; Mon, 24 Jul 2023 23:49:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690267773; cv=none; d=google.com; s=arc-20160816; b=eAUy47mTqKG+h7XnHXLtxj3ipZDelwXVUqEe/ql/uw6q4zOM6HswCtIhIbT2SCDJ5d NQo06Xppe06zS881AM4wltTY9FzxakVL8T7dK/pPyzL2035TjJTAvyJ+7V3tPMqK+m7c PUsJkE5pLfbzyyTCBkq+w4jnHAIu+sO/KBgQZe2uwYGb1SGa1mVwpkeSV3de0JcKuyeg dJVVhsXb+IPFtZ6wRQPBa1/AtMr/AQ5FBmFjLcaUoJQwiLjjlLHGaLl0jJgUEEhTBAq2 VTTqjKaNTdUt6rcgB0h6nfLZfZD7lvyu+UhoviZAHOCKUTgRs3lLxDFe4CU92QxQeQ63 Y82g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=+qZs8OvRaAqvCFVYQzNQkVj0qI4sHIyKLPsxhOCdf2o=; fh=vs4UAhjsqOR6YINwX+Rc6iaEZOnGwtAYSpGexnX2DnE=; b=lgm5kk0aJvd3l1mauiu6JCxjQsMVSLbUht19Itbjnlcr/uB4EoeKnXY3PnLsAG+7b9 3B1QGRDoH3g7J1OglUeW2Kci58c98ga2cmktyzh7Hj7eo3vyqCBEShsK21XxoWeeWInM sm+txr9OUkfAYAC1+hVt0mL0TqYxqwUekwdzBXW6oDC4AX151UdgFL8CrJcY59BSVn2f hj4CRRBtbxiGkAySMtVL1NkEtAWK00g/j31GUyygfptxBp5jSLiiNtHCWyotI54xK9vW o2hj3vzkM1SA78Pyr6htg7CwDIgVyNiCmFVF1mHVS+ypA+/VY5wCFV9ZxWn6Bfl9rixC jO+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l4-20020aa7c3c4000000b0052224390345si3496584edr.61.2023.07.24.23.49.09; Mon, 24 Jul 2023 23:49:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231984AbjGYGO2 (ORCPT + 99 others); Tue, 25 Jul 2023 02:14:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbjGYGO0 (ORCPT ); Tue, 25 Jul 2023 02:14:26 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B566173F; Mon, 24 Jul 2023 23:14:23 -0700 (PDT) X-QQ-mid: bizesmtp91t1690265652t0kk5fjv Received: from linux-lab-host.localdomain ( [61.141.78.189]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 25 Jul 2023 14:14:11 +0800 (CST) X-QQ-SSF: 01200000000000D0X000000A0000000 X-QQ-FEAT: 3M0okmaRx3jg2U2V57q1XRrz+rfT0OKy4F0qemDz2c+HpO10L1OXgGmMgjwLd eSaF0Af04DD1+z+S18+z41Ner1wY2hsQV6e8yo7lsUc6Jm4QOZhxB2NzUlwVF51rZufjqS1 euzmdwAn1lCAlPkzfsqkNLEi+KCRM87ngBVx5YciofSILPc8j8n9kmSOyFlDtYOh33z2TTf o2KsTKT5BG3xtwKYnUcH40cYJOEK/U9fzfr4i2maBdxtBMGRSUmAkd/cQh1z9S2ImOOvTOo WbVYKbdc2qjxAYtuvZaDCQ3F+VgEz4Q81+rbHwWDPppZ8GVGfQS/G0rQxsPV8M8oAVzqM8+ a2iH6PeO+4Ne3+Rg8/rxU/QM22yh5ntFpcNc1TPAawjzAjD/+6nAXC3j5CqiQ== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 674923569547464683 From: Zhangjin Wu To: thomas@t-8ch.de Cc: arnd@arndb.de, falcon@tinylab.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, w@1wt.eu Subject: Re: [PATCH v1 1/8] tools/nolibc: add support for powerpc Date: Tue, 25 Jul 2023 14:14:11 +0800 Message-Id: <20230725061411.15500-1-falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <64a95595-9716-4276-a747-0c985997c1ab@t-8ch.de> References: <64a95595-9716-4276-a747-0c985997c1ab@t-8ch.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Thomas > > On 2023-07-19 05:10:48+0800, Zhangjin Wu wrote: > > Both syscall declarations and _start code definition are added for > > powerpc to nolibc. > > [...] > > > > Signed-off-by: Zhangjin Wu > > --- > > tools/include/nolibc/arch-powerpc.h | 156 ++++++++++++++++++++++++++++ > > This also should be added to nolibc/arch.h. > Thanks, it should be. > > 1 file changed, 156 insertions(+) > > create mode 100644 tools/include/nolibc/arch-powerpc.h > > > > diff --git a/tools/include/nolibc/arch-powerpc.h b/tools/include/nolibc/arch-powerpc.h > > new file mode 100644 > > index 000000000000..100ec0f412dc > > --- /dev/null > > +++ b/tools/include/nolibc/arch-powerpc.h > > @@ -0,0 +1,156 @@ > > +/* SPDX-License-Identifier: LGPL-2.1 OR MIT */ > > +/* > > + * PowerPC specific definitions for NOLIBC > > + * Copyright (C) 2023 Zhangjin Wu > > If it is taken from musl, shouldn't there also be a musl copyright? > For this copyright issue, I have prepared two new versions without a line from musl. even in our old version, most of them are different except the 'sc; bns+ 1f; neg %1, %1; 1:' line and the register variables. Seems 'sc; bns+ 1f; neg %1, %1; 1:' is also used in linux kernel: arch/powerpc/include/asm/vdso/gettimeofday.h, so, it should be ok enough to apply it. The register varibles have been changed and aligned with othe arch-.h locally, they are completely different now, and even further with the new syscall.h mentioned in this reply [1], the file will be completely different. Thomas, Have added your Reviewed-by lines too, thanks a lot! Best regards, Zhangjin ---- [1]: https://lore.kernel.org/lkml/20230725054414.15055-1-falcon@tinylab.org/