From patchwork Sun Sep 29 16:33:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 98121 X-Patchwork-Delegate: azanella@linux.vnet.ibm.com Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3AB44385EC0F for ; Sun, 29 Sep 2024 16:34:12 +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 1FEFC385C6E3 for ; Sun, 29 Sep 2024 16:33:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1FEFC385C6E3 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 1FEFC385C6E3 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=1727627631; cv=none; b=MgBJvY7zI4DCdur/zSYjVq7VKdRxcy+ZxRqFLNvDPOtzSVYEf3nvc4iyNLjFs0e+8fyRAUT2Ka4jwJ4TBWm15ph8t2BcxMPwAf3DJXFdpINU82H7lMHzV1JEEyZF44bf/v5ST/4nzJ1syP4T0mpO57V0cRsFuzv8EV1pL4Jna3A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727627631; c=relaxed/simple; bh=0qbABRK2pHd24g6kQXn5Zhiu+OMAjERP7RpxNViIpzU=; h=DKIM-Signature:From:To:Subject:Message-ID:Date:MIME-Version; b=HRGmkVnTVzYgwwWEzkVjrANz9AuY3e6sZMvwhEaBoXbsMPSFn2EFIiW4KhW5IUtlcdjaycZufbgpKdVoyGCqg3xDM2UTDTJXFObcV0Dqd61BhR/3teRHUZDWdSgpXKELhWEKYiWNu9GQ/EjQYdupJJlcQ3eFgPK3kAEO1KMI5d4= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1727627629; 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=2eRhvhMUITvWADU+0dSJdikRv0vXEoEzBSFU/txqYkU=; b=SOLg5Zfa6GeOwkMkkcghdIhle3eN0by1cUDu/AO7rezy9mA7ew955rWKlelpBfXhYm7KPI UIq2Ad02m3oMbUHgsS3y1zSOmhPSqe1/ty17/cU1+mM6ilUFN3Gqdl1zPqJDpq5bN0gHP3 EAwskAyWkVMGKpHXSAYj10oOhrQ/nL8= Received: from mx-prod-mc-04.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-1-uD3i0lfLNWSkBa__z3tRag-1; Sun, 29 Sep 2024 12:33:48 -0400 X-MC-Unique: uD3i0lfLNWSkBa__z3tRag-1 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (unknown [10.30.177.15]) (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-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 917EF19792DA; Sun, 29 Sep 2024 16:33:47 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.45.224.151]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 6924F1979061; Sun, 29 Sep 2024 16:33:45 +0000 (UTC) From: Florian Weimer To: libc-alpha@sourceware.org Cc: David S. Miller Subject: [PATCH v3 19/29] sparc: Add In-Reply-To: Message-ID: <7a042a691b91dd0450e53228b5682d227aae1799.1727624528.git.fweimer@redhat.com> References: X-From-Line: 7a042a691b91dd0450e53228b5682d227aae1799 Mon Sep 17 00:00:00 2001 Date: Sun, 29 Sep 2024 18:33:42 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 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_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~patchwork=sourceware.org@sourceware.org According to arch/sparc/Kconfig in the Linux sources, 32-bit SPARC has 4K pages, while 64-bit SPARC has 8K pages. To enable running 32-bit binaries in compat mode on 64-bit kernels, support 4 KiB and 8 KiB page sizes for 32-bit, but only 8 KiB pages for 64-bit. The 64-bit toolchain defaults to 1 MiB page size support, so bump the page size range on 64-bit to that, disregarding Linux support. Note: We could fix the 64-bit page size at 8 KiB and XFAIL a future alignment test (currently the gaps test will fail because of the excess load segment alignment). --- sysdeps/sparc/sparc32/bits/pagesize.h | 2 ++ sysdeps/sparc/sparc64/bits/pagesize.h | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 sysdeps/sparc/sparc32/bits/pagesize.h create mode 100644 sysdeps/sparc/sparc64/bits/pagesize.h diff --git a/sysdeps/sparc/sparc32/bits/pagesize.h b/sysdeps/sparc/sparc32/bits/pagesize.h new file mode 100644 index 0000000000..373d367b7b --- /dev/null +++ b/sysdeps/sparc/sparc32/bits/pagesize.h @@ -0,0 +1,2 @@ +#define __GLIBC_PAGE_SHIFT_MIN 12 +#define __GLIBC_PAGE_SHIFT_MAX 13 diff --git a/sysdeps/sparc/sparc64/bits/pagesize.h b/sysdeps/sparc/sparc64/bits/pagesize.h new file mode 100644 index 0000000000..aec8f97a10 --- /dev/null +++ b/sysdeps/sparc/sparc64/bits/pagesize.h @@ -0,0 +1,2 @@ +#define __GLIBC_PAGE_SHIFT_MIN 13 +#define __GLIBC_PAGE_SHIFT_MAX 20