From patchwork Sun Sep 29 16:17:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 1990606 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=DVrLaQN9; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4XGq9g4QPhz1xt8 for ; Mon, 30 Sep 2024 02:17:43 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 85594385EC1E for ; Sun, 29 Sep 2024 16:17:41 +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.133.124]) by sourceware.org (Postfix) with ESMTP id 79729385E83D for ; Sun, 29 Sep 2024 16:17:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 79729385E83D 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 79729385E83D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727626646; cv=none; b=Gs6U/uNpawYJK7kobU0aY0VL2P3JOpGvkkiCwKiqJooK8+lheKe/w+pWwaZMw5QTI0+MWF+rwA2CrK5rqlqbvOi1HwudiLtnZdnf1VYCMIB5/RTjiGwCmRMANPUq5J0rf9WE+0ngbOXFwfeK0GeNKMAlko8P6pxqaS1zAzoJNb4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727626646; c=relaxed/simple; bh=M0OmNrb/9vFsBKrUNRTOKn1RyRYqdpEee2GBlnKOtUU=; h=DKIM-Signature:From:To:Subject:Message-ID:Date:MIME-Version; b=IvkMYubezj6KJ2FzTRUl5Kly6mBnwEpkoVJxuYGdUMcX+oFOouCylEidQLYEKjA7Iplhyf/7838VhCRo2qYsRcMuVz8X6oiLNK5t3tRY+CEfE85jni09R/Y3SN3mHlMXt5jj1LmJ7IVJWJx2VXAG2bNylZLfgfK3GahII3GWxBY= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1727626644; 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=xjENWH8OiirUl68026cMGi45vkhQrqRCKPfW8fA6Tik=; b=DVrLaQN9Njf1076/x0tBqx2Gev3zNok2q6SCV14fuyJSvF1TcmWMVW3A9FdIqb6D6q++LO qMq4e5bKBoSCGDQbWC8rKEv+TLlFJ7OzubeT+kG2r5uBZQM1fTneEmVamMtDWEti1LK/ZD e9+dk51uXQCpTvO0ZixISPA1KcVfLnI= 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-252-LffWm5F8PHmPW6Xqb6MXzA-1; Sun, 29 Sep 2024 12:17:21 -0400 X-MC-Unique: LffWm5F8PHmPW6Xqb6MXzA-1 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (unknown [10.30.177.12]) (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 3293C195FE13; Sun, 29 Sep 2024 16:17:20 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.45.224.151]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id CFBDA19541A0; Sun, 29 Sep 2024 16:17:18 +0000 (UTC) From: Florian Weimer To: libc-alpha@sourceware.org Cc: Andreas Schwab Subject: [PATCH v3 10/29] m68k: Add In-Reply-To: Message-ID: <12ac67f1b63ed8dc7c54cd267de4ffbf4cee5926.1727624528.git.fweimer@redhat.com> References: X-From-Line: 12ac67f1b63ed8dc7c54cd267de4ffbf4cee5926 Mon Sep 17 00:00:00 2001 Date: Sun, 29 Sep 2024 18:17:15 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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~incoming=patchwork.ozlabs.org@sourceware.org This commit assumes that traditional m68k and Coldfire binaries are incompatible and cannot run with the opposite kernel. Based on available information, Sun3 kernels (with 8 KiB pages according to arch/m68k/Kconfig) can run traditional m68k userspace code, so the page size for such binaries is either 4 KiB or 8 KiB. Page size on Coldfire kernels is always 8 KiB. --- sysdeps/m68k/bits/pagesize.h | 2 ++ sysdeps/m68k/coldfire/bits/pagesize.h | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 sysdeps/m68k/bits/pagesize.h create mode 100644 sysdeps/m68k/coldfire/bits/pagesize.h diff --git a/sysdeps/m68k/bits/pagesize.h b/sysdeps/m68k/bits/pagesize.h new file mode 100644 index 0000000000..373d367b7b --- /dev/null +++ b/sysdeps/m68k/bits/pagesize.h @@ -0,0 +1,2 @@ +#define __GLIBC_PAGE_SHIFT_MIN 12 +#define __GLIBC_PAGE_SHIFT_MAX 13 diff --git a/sysdeps/m68k/coldfire/bits/pagesize.h b/sysdeps/m68k/coldfire/bits/pagesize.h new file mode 100644 index 0000000000..3a01770005 --- /dev/null +++ b/sysdeps/m68k/coldfire/bits/pagesize.h @@ -0,0 +1,2 @@ +#define __GLIBC_PAGE_SHIFT_MIN 13 +#define __GLIBC_PAGE_SHIFT_MAX 13