Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp751647lqe; Sun, 7 Apr 2024 02:06:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVqbg7ApxgCOaAgGbbnMRFrEmCh/Bimib6+eV8YWnt4ZE4ih28z2pbDOigNAjkqO0fXXFZqDOnT/mt6oGgDoySictIXvUbZqxPloNWDSg== X-Google-Smtp-Source: AGHT+IFzzqLe8/cpl9/6cbW1o8sZABlSnHZG4N+RUKP7nYm9qSBqV/OXZoDzF9gGK6/9NrHV3x6q X-Received: by 2002:a05:620a:2906:b0:78d:5f09:9859 with SMTP id m6-20020a05620a290600b0078d5f099859mr2902446qkp.60.1712480774757; Sun, 07 Apr 2024 02:06:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712480774; cv=pass; d=google.com; s=arc-20160816; b=w6ykS0kqrkZnhzWm1MjrMxBGR4sITV2EFUXqa590QepETPiF1YNdc2yugrQTTFCNeY 1uEXC2Ikcresyoum3oEP9rJD70aghfWW1UrZw9ldc7ne40ZKjPYcCsSDKGfT8OdMYVUh aN9UzWHnKLYwHCQMj9ki4G3dIq17gSj9WRIXl6z+1VMgg9eXxSfxVGdQh0rfooEfSH4n xOVeZiTCkkR4TAKoltP0t3UzAm+ihTqREYzJELJpDYAHLQ/2NXBqclJHzfw6vRWQxrLo 6ki66tP9XkkDQ52Kae7BvORcCzWsLRg30Q9wIph67DqLDobrLw3yQEGlucyhmmTIk3Qx zqIg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=P6Ao7lt8bYptuXYSouvezeqYjGeG+t4ZB0d0AMHEq3o=; fh=E5rKLom0pr/8W6rU2FUUIXVzGi015JY9uZiRkl9wZIc=; b=Mc3938JNv7AlqPF2Qd0y25ICAia2zfx5/4ybDfe7/v7iCKZcIjcLXEQDSquKkX17/J Sp+8mvckYZXsoS2GcFAPQXCwExsF5UkP+7t/mNknk1+tCYnUpnvZn3ost8NcFnyqerWT Vgg3rUu86g1eu/T23+vonXSASK8v5CpgSJ51hFOvqMYyj+ZF9AkSm8/jdRfx2TZ2HgA4 P2G8PmUe48YEdZBsrxfK2aaGnZDcvCyCpD7xYTdpDr0ukbWaR8a42zNRMU3Q4YZeijN7 CV9JpHRVQ0osLona6W0LFHFzgA9RKODebvPKeHo4yTfiES7MJLOAkdGl8VdPhta1QXee ltnw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VB6XghBs; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-134284-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134284-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g15-20020a37e20f000000b0078a36405d17si5693036qki.611.2024.04.07.02.06.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 02:06:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134284-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VB6XghBs; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-134284-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134284-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 09C741C2158C for ; Sun, 7 Apr 2024 09:06:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 68A92364C4; Sun, 7 Apr 2024 09:04:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VB6XghBs" Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47F9133CF5; Sun, 7 Apr 2024 09:04:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712480645; cv=none; b=HNlxf5EX0LqkmnBEpwD/elOlcKSyXKaj2PhrfD+vi28sYNkcqZbzsuOT8UKGRiKKAkfAA4LQbJthF7418KaranIVw7EMH7bG+oO/exb9nEvztKo6kwv1aB3lNhdwwksVlsz6z5YFb7IykKiNNvG206v2U6RRdGwDgzu7Y+SqqCE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712480645; c=relaxed/simple; bh=FJ4sCFu41FqELkYNcQeO9GHd0HS+4qyW6t8CF+WAzbc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=UT473uI7wRtiNuaJQDd/LCP0NpYUH7s+I5ssCHlT1zNoopMFVhB70g4GXfamISfNKAI56E6pb97RUfw8b7tPa3caVWNEpWqw2ISbiyP+DdZCbP2GdNkgP6cz+cl44vr9PaW1+q2KAFdHr+qcmCeFmhXfaapp9YSa55DDzDIM8M4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=VB6XghBs; arc=none smtp.client-ip=209.85.214.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1e2bbc2048eso28541015ad.3; Sun, 07 Apr 2024 02:04:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712480643; x=1713085443; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=P6Ao7lt8bYptuXYSouvezeqYjGeG+t4ZB0d0AMHEq3o=; b=VB6XghBs0CEh3lGFxzG0vfzU8XnskjjBc28EmlAfLDDEXxW3PeFMTJ+gpys3sCptsc vfp9QKaa97BQQKS5ZtxeZzl+89HYuRz4bCQZLOQHvKrAGRF4CpfaLBg6dl7Yy6TgN+Fv J4x2RBEjhVrfeWZTnVpLLcRB3Qd+DuLleDAOlrP0i6stfWXf3TqCo3UoV4ugpC3t8YiM VSnjiaQpuhx4owipL6RIFc1kOlN8Yi1xgiE3dxwHC16TrJmtzgL/7lD1El3DPOBB+bT9 jBlAXVqp4opNQkk+LQaVbgfAU0tnAFew5TMtpCeyXVNrNwlhXKIwyljCxIH4wNbf9jQr 62Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712480643; x=1713085443; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P6Ao7lt8bYptuXYSouvezeqYjGeG+t4ZB0d0AMHEq3o=; b=qxgggXfNMe9YSzqoc/toYMzeDM3YhZWATbGUBy97kTWDs8kaIQpkaaOw1t3Akkd2+p yEBl6V8wOEyyMeDWSOLFlqLrya4Cep9VWtHHPV9aAcz5LP5dwPiF5pUrUHX+Ahp12Ixc +fvodOIDsxWnfWdhMsPOec4P7JBsNt/F/BcGd5kG4fQhR7fJ6w0O55ISXYN+p9Yb0h+g hnSSzWqM74IYKxMx6gyo556c6pAagvP8vePEJKvLocxr/aLPZ0BofSDbLAvYJSSRZ9EB mmUk1tTETnRVoaTB6AF09FqBEKNDmvAZtUtg12PWXnzu0EPSZLhMCucuTaQTXToRs26Y ewMg== X-Gm-Message-State: AOJu0YwMgvjVJjkLtcqqYpazOumXYBQqEOF/jOD7JMPG6sGjzY+8laR0 Uo/jdnAXNc6M7rRw8sI/qoUKmKqB9Gqk/75I3m84r8Dj3CfEztqzeRD/P8yK X-Received: by 2002:a17:902:ce03:b0:1e4:43f:64d4 with SMTP id k3-20020a170902ce0300b001e4043f64d4mr940632plg.49.1712480643183; Sun, 07 Apr 2024 02:04:03 -0700 (PDT) Received: from localhost ([47.254.32.37]) by smtp.gmail.com with ESMTPSA id w26-20020a63161a000000b005f0a1a46f08sm3743660pgl.11.2024.04.07.02.04.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Apr 2024 02:04:02 -0700 (PDT) From: Lai Jiangshan To: linux-kernel@vger.kernel.org Cc: rcu@vger.kernel.org, x86@kernel.org, Lai Jiangshan , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Subject: [PATCH V2 08/11] x86/entry: Merge thunk_64.S and thunk_32.S into thunk.S Date: Sun, 7 Apr 2024 17:05:55 +0800 Message-Id: <20240407090558.3395-9-jiangshanlai@gmail.com> X-Mailer: git-send-email 2.19.1.6.gb485710b In-Reply-To: <20240407090558.3395-1-jiangshanlai@gmail.com> References: <20240407090558.3395-1-jiangshanlai@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Lai Jiangshan The code in thunk_64.S and thunk_32.S are exactly the same except for the comments. Merge them in to thunk.S. And since thunk_32.S was originated from thunk_64.S, the new merged thunk.S is actually renamed from thunk_64.S. Signed-off-by: Lai Jiangshan --- arch/x86/entry/Makefile | 2 +- arch/x86/entry/{thunk_64.S => thunk.S} | 0 arch/x86/entry/thunk_32.S | 18 ------------------ 3 files changed, 1 insertion(+), 19 deletions(-) rename arch/x86/entry/{thunk_64.S => thunk.S} (100%) delete mode 100644 arch/x86/entry/thunk_32.S diff --git a/arch/x86/entry/Makefile b/arch/x86/entry/Makefile index c93e7f5c2a06..ce1cc1622385 100644 --- a/arch/x86/entry/Makefile +++ b/arch/x86/entry/Makefile @@ -17,7 +17,7 @@ obj-y += common.o obj-y += vdso/ obj-y += vsyscall/ -obj-$(CONFIG_PREEMPTION) += thunk_$(BITS).o +obj-$(CONFIG_PREEMPTION) += thunk.o CFLAGS_entry_fred.o += -fno-stack-protector CFLAGS_REMOVE_entry_fred.o += -pg $(CC_FLAGS_FTRACE) obj-$(CONFIG_X86_FRED) += entry_64_fred.o entry_fred.o diff --git a/arch/x86/entry/thunk_64.S b/arch/x86/entry/thunk.S similarity index 100% rename from arch/x86/entry/thunk_64.S rename to arch/x86/entry/thunk.S diff --git a/arch/x86/entry/thunk_32.S b/arch/x86/entry/thunk_32.S deleted file mode 100644 index da37f42f4549..000000000000 --- a/arch/x86/entry/thunk_32.S +++ /dev/null @@ -1,18 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ -/* - * Trampoline to trace irqs off. (otherwise CALLER_ADDR1 might crash) - * Copyright 2008 by Steven Rostedt, Red Hat, Inc - * (inspired by Andi Kleen's thunk_64.S) - */ - -#include -#include -#include - -#include "calling.h" - -THUNK preempt_schedule_thunk, preempt_schedule -THUNK preempt_schedule_notrace_thunk, preempt_schedule_notrace -EXPORT_SYMBOL(preempt_schedule_thunk) -EXPORT_SYMBOL(preempt_schedule_notrace_thunk) - -- 2.19.1.6.gb485710b