From patchwork Sat Mar 4 14:29:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Willy Tarreau X-Patchwork-Id: 6109 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp951688wrd; Sat, 4 Mar 2023 06:40:39 -0800 (PST) X-Google-Smtp-Source: AK7set9tco5ZxxSV+YDWRe2ZR/ndKt7Vf56J01kgE4pGniuXeFOqSR6LFJ/YAR/XEPdIHEfWjX9R X-Received: by 2002:a17:902:b28b:b0:19e:639a:e72c with SMTP id u11-20020a170902b28b00b0019e639ae72cmr5111589plr.52.1677940839449; Sat, 04 Mar 2023 06:40:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677940839; cv=none; d=google.com; s=arc-20160816; b=yzcua5vIeIrkAOFqxf4gCs3WkOoVLOhjMJTY1mRdjCoGImQ2qJIKvRyEHKMrGWFQfU WraLVPOxpC4zJmK5XU8JIv97fCdKRAohKGlsCHdKMJtb+FQckg5aFXYso0S3rCJycxSY GpcfAtMyB8P+3eV0kBAJUGf3rHduicKuSZax8ZUXAKTklKnygT0ZSiveWJRZm/whc0dY zZhBhsRxH9+ViQ/vfzvkWLeT5Jwx/N6Clsn77FZn2FtvhdSzPNC6tzZseFJOazTOyttF XtyoDOv6pB57lKqkJszZDj8vHb60YRq30705M7CKIKFximemBeUMUS4UqOGJKzQcGW99 CMIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=RlbQKTR0VXjUa9lStADc5Ti8m3Eb0HDn69rGTSxZq/U=; b=qi3UM/QnMf9MOIRVwJ3fR9DjrhGz2ShUkZSD1Q0567of8URCqM+BXO6mG32Lj8wIUw Wgnw3ZtCe4bouHlPIUtOuYvQPOBcTZrZBBTRwFh178vbio3TwTfG4ZJvCobCIvU4vHSu Tx8QaMtQcjGJvZWNhuVneun1GCzNXuj+6HT+s/P2n5JYNjIw3MD8pgYC7FblDBknk/Np mg3F9aLJTU+LLWosoQMMPJKdBc2TbaafT7q9VYKT+/5ZEpjvprCe21pFqA8z5YnFjMxq SyL083YPQVfNy8wuEwpm5PV1NHXEfokVQK2zuxtMKBibI5zI9bxaZmt7cjaaj2a76OJe 3L4g== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a6-20020a631a46000000b0050316c07e8csi4909487pgm.456.2023.03.04.06.40.27; Sat, 04 Mar 2023 06:40:39 -0800 (PST) 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 S229616AbjCDOam (ORCPT + 99 others); Sat, 4 Mar 2023 09:30:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229551AbjCDOak (ORCPT ); Sat, 4 Mar 2023 09:30:40 -0500 Received: from 1wt.eu (wtarreau.pck.nerim.net [62.212.114.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BA5BB1F5DC for ; Sat, 4 Mar 2023 06:30:10 -0800 (PST) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 324ETwCP006727; Sat, 4 Mar 2023 15:29:58 +0100 From: Willy Tarreau To: paulmck@kernel.org Cc: chenhuacai@loongson.cn, chenfeiyang@loongson.cn, linux-kernel@vger.kernel.org, Willy Tarreau Subject: [PATCH 0/3] tools/nolibc: add LoongArch support Date: Sat, 4 Mar 2023 15:29:52 +0100 Message-Id: <20230304142955.6682-1-w@1wt.eu> X-Mailer: git-send-email 2.17.5 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759448494167079470?= X-GMAIL-MSGID: =?utf-8?q?1759448494167079470?= Hello Paul, this is the third and last series of updates to nolibc for today. It contains Feiyang Chen's work that brings in support for the LoongArch architecture. I have tested that it builds fine and does not break any existing arch. However I have not rebuilt my qemu to add support for this new arch yet, but Feiyang has already run these tests so that's fine by me for now. I'll ensure to have an updated qemu before 6.4 to continue extensive testing of all supported archs anyway. This series is to be applied on top of the second series titled "tools/nolibc: cleanups, statx(), getuid()" since it depends on it. Again, it would be great if it could be queued for 6.4. Thank you! Willy Feiyang Chen (3): tools/nolibc: Add support for LoongArch selftests/nolibc: Add support for LoongArch selftests/nolibc: Adjust indentation for Makefile tools/include/nolibc/arch-loongarch.h | 200 ++++++++++++++++++++++++ tools/include/nolibc/arch.h | 2 + tools/testing/selftests/nolibc/Makefile | 78 ++++----- 3 files changed, 243 insertions(+), 37 deletions(-) create mode 100644 tools/include/nolibc/arch-loongarch.h