From patchwork Sun Sep 29 16:12:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 1990605 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Bmq9Sswp; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XGq3t4218z1xtM for ; Mon, 30 Sep 2024 02:12:42 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 44ABB385DDFE for ; Sun, 29 Sep 2024 16:12:40 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 2ECA7385841E for ; Sun, 29 Sep 2024 16:12:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2ECA7385841E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2ECA7385841E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727626345; cv=none; b=w1M9vsqoWsWNKoOHlAvKhHL0d0O1/zcN/NaOB8H7VhGO8Dj8ep4YFiIAe5DkTHSOH2mBcnOqRrTS0kNZPyR2fQdLNBR5fJfZ8ZgstKWdC3HXr+54Fg4ZMUZd8d82DKP0UFWxgu7Sa5k7R3y3xX582hbKgDQGUWnnj18NAjEgq24= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727626345; c=relaxed/simple; bh=dmXVWdc8SFasuu+SggmRuW1+Xi55ytfMA1AqcD6dh1c=; h=DKIM-Signature:From:To:Subject:Message-ID:Date:MIME-Version; b=MSKHXTn0USxmPQdApEgz094Mfr4wbv/5Ur0hGptCtmfASK6QQd/Krmm+1Z3D+eFHhdFeW5eOFHUR//2Awrx7MbF8UaiZCxT1RDB6NhaqzFMueTMYk0Rx7f1bhd8JmCoKpta9unCoyPWNF0wZ6uBzcHjqUSjLlwjpD/9f0zBffWQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1727626343; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=i0cvDJmSytLc2iYZPEMWEmlfpgeU2Bo7T+RtIn8jqo0=; b=Bmq9Sswp/h9fAnWhwAQux+ywEI/EUvTBoex6thes1ckH9FSj1nmjJfP1rY3vEF2I8lAl+a XqlsYj2TLFQpziwC3+B4k9URYl0FiigBMe1ROLbWgrfPSoV52b+36pvbGu1d2IswwSw8ta uHsazg441MfkrQdyXSc9KYAVR+pcRy4= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-311-IW1B9_nEPfqKHlrZcbnoNQ-1; Sun, 29 Sep 2024 12:12:20 -0400 X-MC-Unique: IW1B9_nEPfqKHlrZcbnoNQ-1 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (unknown [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C3CC91953955; Sun, 29 Sep 2024 16:12:19 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.45.224.151]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 390933003E4D; Sun, 29 Sep 2024 16:12:17 +0000 (UTC) From: Florian Weimer To: libc-alpha@sourceware.org Cc: caiyinyu , mengqinggang Subject: [PATCH v3 09/29] loongarch: Add In-Reply-To: Message-ID: References: X-From-Line: bac0d3dd136a994bdf014dd1243e86a9095cce1c Mon Sep 17 00:00:00 2001 Date: Sun, 29 Sep 2024 18:12:14 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org According to arch/loongarch/Kconfig in the kernel sources, LoongArch supports 4 KiB, 16 KiB, and 64 KiB page sizes. Note: The entire series runs into a GCC compilation problem on LoongArch, which appears to be a GCC bug: Section type conflict on loongarch with .data.rel.ro section attribute https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116887 --- sysdeps/loongarch/bits/pagesize.h | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 sysdeps/loongarch/bits/pagesize.h diff --git a/sysdeps/loongarch/bits/pagesize.h b/sysdeps/loongarch/bits/pagesize.h new file mode 100644 index 0000000000..cd688d3fb0 --- /dev/null +++ b/sysdeps/loongarch/bits/pagesize.h @@ -0,0 +1,2 @@ +#define __GLIBC_PAGE_SHIFT_MIN 12 +#define __GLIBC_PAGE_SHIFT_MAX 16