From patchwork Wed Oct 2 08:30:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 1991861 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=G81c/EBV; 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 4XJSgp4cj6z1xtn for ; Wed, 2 Oct 2024 18:31:02 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BF1923860C3A for ; Wed, 2 Oct 2024 08:30:59 +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 3FE2C384DEC2 for ; Wed, 2 Oct 2024 08:30:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3FE2C384DEC2 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 3FE2C384DEC2 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=1727857839; cv=none; b=GfU76+Fjt6abBmQVf3jPNr2r6LEgNutRzjn2cOXF/tt1iUUiHR3eQB2WLD9xzlidVhl5qNBGA7JJ0FMlaGShv/d6s0QbK4zwZHPBDEAOwhYNO7m0AfnuvFbmMH/oCXBn2hM/LYpiHee1j225U5lEwiSBTqKKN8eDI98QhcqqN28= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727857839; c=relaxed/simple; bh=WOj35yWul6nMU/EF3O1XvjMlZJa4vNC7VcPl2gWxcZA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=E3dptRusf+MqrGVUybPz49enZe2dhUuQ88XvnY+nfpEoHzuCsDlMhKUiXFA40siWe/eErqwnLWZyM/SjERP3dRjZh4SmfgeKp64LbZHsE1NX/rK1dhQ1/E2Tezwc7mshLIEzsjEK0eJKkHV2ExqIwKvq8nzxbaYD6yy5yYvGdO4= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1727857838; 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; bh=WOj35yWul6nMU/EF3O1XvjMlZJa4vNC7VcPl2gWxcZA=; b=G81c/EBVTBg4NrV1WqepsqEYyaQEdVkYk/ckU5Gh6s5vsmIdQCKrFKq0Ubr1TGMDt+/VHx F+XUfT/JGYUJlSP5Pyov3sKDR0sX0zq/s/V89ZiDmR4glvdSIqvWD+7ZbP7cUhTeDr7Nno KW03lMckbwTQbLo9omoIV+FsGmOxErM= Received: from mx-prod-mc-01.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-357-YDM9nYs7OLuKpDsKetQedA-1; Wed, 02 Oct 2024 04:30:36 -0400 X-MC-Unique: YDM9nYs7OLuKpDsKetQedA-1 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (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-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id DD04D1955BF6 for ; Wed, 2 Oct 2024 08:30:35 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.45.224.151]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9643E195605A; Wed, 2 Oct 2024 08:30:34 +0000 (UTC) From: Florian Weimer To: libc-alpha@sourceware.org Cc: "Maciej W. Rozycki" Subject: [PATCH v2] mips: Add Date: Wed, 02 Oct 2024 10:30:31 +0200 Message-ID: <871q0ygb4o.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 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, RCVD_IN_DNSWL_NONE, 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/mips/Kconfig in the Linux sources, MIPS supports 4 KiB, 8 KiB, 16 KiB, 32 KiB, 64 KiB page sizes depending on CPU/configuration. The new header is Linux-specific, to reflect that MIPS has a software-defined TLB, and that the page size can be configured by the kernel within a wide range. Reviewed-by: Maciej W. Rozycki --- v2: Change location of the file. sysdeps/unix/sysv/linux/mips/bits/pagesize.h | 2 ++ 1 file changed, 2 insertions(+) base-commit: 069808403466af989cf08f74c77fcc1025980283 diff --git a/sysdeps/unix/sysv/linux/mips/bits/pagesize.h b/sysdeps/unix/sysv/linux/mips/bits/pagesize.h new file mode 100644 index 0000000000..cd688d3fb0 --- /dev/null +++ b/sysdeps/unix/sysv/linux/mips/bits/pagesize.h @@ -0,0 +1,2 @@ +#define __GLIBC_PAGE_SHIFT_MIN 12 +#define __GLIBC_PAGE_SHIFT_MAX 16