From patchwork Wed Jan 3 17:14:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Bugaev X-Patchwork-Id: 83252 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 3B13F386C5B6 for ; Wed, 3 Jan 2024 17:20:02 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by sourceware.org (Postfix) with ESMTPS id 377B8385802A for ; Wed, 3 Jan 2024 17:15:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 377B8385802A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 377B8385802A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704302118; cv=none; b=b0blgEYjNe4ZcnhNkAsyZgpdjQxP1fnwJXcZ5ZWVsfjD5ru/NNarKsWELhS+aYmB6qM76Uw0un05bENSZKiv+Rn0E0YCcd+vF2dTxuMIGs82H/q8Znz985mDhoIKE9Yc3M7jMhs3+QBNa5XUX4BP4QolNFTnBf5dyFiEDsAVrco= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704302118; c=relaxed/simple; bh=8b9rGqS7QVPQjf+HiiA3L97Z5fB7XYkMK9uTi4UOQ/E=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=IXm+mkBiTMJOMA59WOQAZ+/DGfO1yFLBobnrhdKpf36jcPyfAvrxlWTIUmdz1bNY8l8BfWqATO0HCeiPDYzC6rcrxwSMtcSIUSRdLiaOrDGOXx7yK5xbfXE8oDw07nbR4ClnhgUd/Hg0Wo5qL7asRHyUPOD0RGNjcRq2Gttsufc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-50e67e37661so11594870e87.0 for ; Wed, 03 Jan 2024 09:15:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704302113; x=1704906913; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=K8I+fRZDvZlmaWqcR+JmQMx5YedYZiJtCyg9DRz5iR0=; b=KN/gZQBLqu2MuzXDb3ujs7xuJhDhOX/kVbiPrznv+qhp6usHC0Grjz5SNsm4xdOGVG 1TaXT+ehLebtrf4Yp0HqOKL6h01I1OTV2p4oxnxKFVsvkrGvvJFhn7ul+n0FCFfhqz7A HL6VgYV7/HX6FmWPPhA/OqiLi/m98vKVbvM2sAzwt657aQ+XBA7CGS2NoPLLHh6Tgtz4 lxxm/KkTT9J9y80dL1JQp35mJL0uxtRfRFD0aC6wRJfV3Oo0y6k9L3vEkYsme0XVgD3s nVPSup4kU2jihokcp+uy+5CVXfHZIzy/x/YXWuLewT5b5joapoe04WlmcBbYun9jfVCc nsUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704302113; x=1704906913; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K8I+fRZDvZlmaWqcR+JmQMx5YedYZiJtCyg9DRz5iR0=; b=m/7sCC0dTEcJqMInsK3uJ5+tutpaSV1UVLHYvapnbr9FygeO2V+2WQKDF1s61kaKIg ZuNIKKEhkNMHzYQdA0ViBsY9GGguduRY3z5lhGEmnIhUELsTXMRAptjJhdOVmC2CjQlg B681G0VY09q4Cfc84kXFrcyz4z3edzHH1CY6zIjeJlpXWKJZpFgjEV2lnuTkduFTh24j xvbJUZ9uh6bUeoon4eGJCOCN9WTVxKDCCTBgbG8EqrUKADxOqV0nTAeiypa32UBBDgVo H/HGAVVUUTzLfElsGUAyylKh2hzapHx5akD+oHHqTH0r2xiFmD7H7y+dh8FTe+jHPlwY F7/A== X-Gm-Message-State: AOJu0YwUR9jKaIX0VQcB8cNX1lz37MKzBEdHOsIhGMlbyM73/WmlWCaJ 3cIcKQC2K3GQi8fBL+UPO4AbV/KvzcA= X-Google-Smtp-Source: AGHT+IEDzM0q91sVN4n/npvmLiuzg6oICHevnXfxqlJrZ3/OkqfuPY8bEe4cLe+C/nseiYk4aCPX2Q== X-Received: by 2002:ac2:43ab:0:b0:50e:3377:a199 with SMTP id t11-20020ac243ab000000b0050e3377a199mr8295801lfl.81.1704302113077; Wed, 03 Jan 2024 09:15:13 -0800 (PST) Received: from surface-pro-6.. ([2a00:1370:818c:b32f:ebdc:fd0:376b:8006]) by smtp.gmail.com with ESMTPSA id y23-20020a196417000000b0050e6d84d177sm3546068lfb.279.2024.01.03.09.15.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 09:15:12 -0800 (PST) From: Sergey Bugaev To: libc-alpha@sourceware.org, bug-hurd@gnu.org Subject: [RFC PATCH 09/23] hurd: Make init-first.c no longer x86-specific Date: Wed, 3 Jan 2024 20:14:42 +0300 Message-ID: <20240103171502.1358371-10-bugaevc@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240103171502.1358371-1-bugaevc@gmail.com> References: <20240103171502.1358371-1-bugaevc@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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 This will make it usable in other ports. Signed-off-by: Sergey Bugaev --- sysdeps/mach/hurd/{x86 => }/init-first.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename sysdeps/mach/hurd/{x86 => }/init-first.c (98%) diff --git a/sysdeps/mach/hurd/x86/init-first.c b/sysdeps/mach/hurd/init-first.c similarity index 98% rename from sysdeps/mach/hurd/x86/init-first.c rename to sysdeps/mach/hurd/init-first.c index 211b2096..85261916 100644 --- a/sysdeps/mach/hurd/x86/init-first.c +++ b/sysdeps/mach/hurd/init-first.c @@ -1,4 +1,4 @@ -/* Initialization code run first thing by the ELF startup code. For x86/Hurd. +/* Initialization code run first thing by the ELF startup code. For Hurd. Copyright (C) 1995-2024 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -155,7 +155,7 @@ first_init (void) #ifndef SHARED /* In the static case, we need to set up TLS early so that the stack - protection guard can be read at gs:0x14 by the gcc-generated snippets. */ + protection guard can be read at from TLS by the GCC-generated snippets. */ _hurd_tls_init (&__init1_tcbhead, 0); #endif