Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7357863rwb; Tue, 15 Nov 2022 11:02:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf6jP0nni8cdIqc0rvpPQ4EDStkqJ7QJbfzGEd4bCDiOxuZTBY4e0DUf4SmCbbjqKCe7D0gj X-Received: by 2002:aa7:84d2:0:b0:56c:3fbb:7eb1 with SMTP id x18-20020aa784d2000000b0056c3fbb7eb1mr19876666pfn.7.1668538938162; Tue, 15 Nov 2022 11:02:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668538938; cv=none; d=google.com; s=arc-20160816; b=FAoPFKpyPYNKt9r2b3iUDy/g9gzFJla5ElSOPj0vSc1RQVk+7RoJ+ljY7zb8amedLA yIKkpIbo6+Yva6VGN/f2M4zLJHrtF5mlSX16JbMk05Fg8NXLBIQd9EFXe2SxBeWErOzN XjV2Pk9bIYJCubP1cpl3XN2KK2V6ahFmAU+M+ISOo4RTkd9n8T5uoYuMt13HRGm9lnR8 EuaRUdYvJK6YJ3QBUBSPP517v/vmdoJ47Fpl0ZRJBNTwcA9BUYS9TC8TOvZPNQheavS7 WkDHv4MLD2i778h/eLuss8gkhzpjR72XPLwgMKvtb9ePy2Rqk/v0E/ZFJgqmH+t1WMrW V/XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=riYy6P33ZZy18g0NCwmRmQ/TR/Zp7ho4V4Ku/hEbkcQ=; b=MbSyDfXKPjimHQ70o+hUp/vjGecsFIC9Sl9iSHfGrBbRTxYxXBvfrlwqYQGBz3zwFM PnPJCnxlzQnUjXSTx0t2C2feMORzmlWOrESGngYVJ5OH+khZOlAhy5ICAf7eUKMbRG8C kRNrmiveBgrKuUCod3iJShWcAisDxSW+8+hGfqqqVMlm9rwtRQLEHu72gNfXMlnDjQTt 7LSxkjJyvohpc6sOIeQ6XkCfIcePheoIjXfjtSoaI/XGTrf48PechWwxQ7TbSzUdQndk 0U5ugh97lZIj6cgiGKpECWQQiVJ1m58/zCr6P208s3IAklWHCucJ37d7eDud4dRCwRBf 1NTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="R7Q/2Zu9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mw13-20020a17090b4d0d00b001fe2de6a2c9si15455260pjb.4.2022.11.15.11.02.04; Tue, 15 Nov 2022 11:02:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="R7Q/2Zu9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229711AbiKOSny (ORCPT + 90 others); Tue, 15 Nov 2022 13:43:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbiKOSnw (ORCPT ); Tue, 15 Nov 2022 13:43:52 -0500 Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAA5527DCC for ; Tue, 15 Nov 2022 10:43:51 -0800 (PST) Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-13ba86b5ac0so17264247fac.1 for ; Tue, 15 Nov 2022 10:43:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=riYy6P33ZZy18g0NCwmRmQ/TR/Zp7ho4V4Ku/hEbkcQ=; b=R7Q/2Zu9e/nFjheSx0I4A2sOqiikywnNTYMF5ic7CCk4ahR7vX+mAKvcnZzZ7IIAro yZBQmu6rZz3moR2dDHX5+HL+yQy9UOyv/oDcVw6Y/UnTFEWiEKkPzFnAJ4EvNRTF9A7v a3dnnVN+jUI2/KYIlpVrAcwwcjnOcmcJJ2xQHOUMBCxuwM+CSBJU9klAfhw3fKS9GDOr VTFKPrhtZDEUV0W+e9bvgJOm66EyeY6k6bIFzib8KbEJQMdISKPOcECByot9yDtYGFEF 4/5eqEaaGVSzWCWaez2RHBliL+DbLUxwtpjWHbEwyRsVndfTkgnWFynhJi2Gzk6uqKyx m9pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=riYy6P33ZZy18g0NCwmRmQ/TR/Zp7ho4V4Ku/hEbkcQ=; b=L8gQ3y57zUxX+kGUm3/ryrvF3tfbwopeU9XZ+vzoyq8JXkeC8ukMquzcuaGKvWUHti V+98prwGrmx5iRoS6IZtpBaA5AKZ8tTyqggO4+OSYwg/z7beooJdodROswRa6j4lDOUk TodhOZqOuDYxYeEgPBJmRf9dJoLDzx8gk5NdJSoJXGmnZLhT1s+0chpe7MBPcVMQarcR SIaxNa14XhgKvmcMO3iZGijv1VE2/SCciGbDYIXpD9l+ilgzI9udgr143g8wbHgj915o IRg7ewAjn8dKHu8W8UjBdtiIfIsUmarCDBIvaV7khrimXmeL+FgTD81OyyNbjoqLtRcV 1aYg== X-Gm-Message-State: ANoB5pmAtfYH/IiAgwqgNmpw6edejDc6RvrxPrkvTNKDf1hbIwXpJaXg +mghp1TYGim5hxfpbSByzOk7XUPOfA== X-Received: by 2002:a05:6870:f22a:b0:136:4744:b97f with SMTP id t42-20020a056870f22a00b001364744b97fmr1907501oao.297.1668537830937; Tue, 15 Nov 2022 10:43:50 -0800 (PST) Received: from citadel.. (075-134-122-108.res.spectrum.com. [75.134.122.108]) by smtp.gmail.com with ESMTPSA id q25-20020a05683022d900b006619f38a686sm5663769otc.56.2022.11.15.10.43.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 10:43:50 -0800 (PST) From: Brian Gerst To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: Thomas Gleixner , Andy Lutomirski , Borislav Petkov , "H . Peter Anvin" , Peter Zijlstra , Brian Gerst Subject: [PATCH] x86-32: Remove setup_once Date: Tue, 15 Nov 2022 13:43:28 -0500 Message-Id: <20221115184328.70874-1-brgerst@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After the removal of the stack canary segment setup code, this function does nothing. Signed-off-by: Brian Gerst --- arch/x86/kernel/head_32.S | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S index 9b7acc9c7874..67c8ed99144b 100644 --- a/arch/x86/kernel/head_32.S +++ b/arch/x86/kernel/head_32.S @@ -260,16 +260,6 @@ SYM_FUNC_START(startup_32_smp) /* Shift the stack pointer to a virtual address */ addl $__PAGE_OFFSET, %esp -/* - * start system 32-bit setup. We need to re-do some of the things done - * in 16-bit mode for the "real" operations. - */ - movl setup_once_ref,%eax - andl %eax,%eax - jz 1f # Did we do this already? - call *%eax -1: - /* * Check if it is 486 */ @@ -331,18 +321,7 @@ SYM_FUNC_END(startup_32_smp) #include "verify_cpu.S" -/* - * setup_once - * - * The setup work we only want to run on the BSP. - * - * Warning: %esi is live across this function. - */ __INIT -setup_once: - andl $0,setup_once_ref /* Once is enough, thanks */ - RET - SYM_FUNC_START(early_idt_handler_array) # 36(%esp) %eflags # 32(%esp) %cs @@ -458,7 +437,6 @@ SYM_DATA(early_recursion_flag, .long 0) __REFDATA .align 4 SYM_DATA(initial_code, .long i386_start_kernel) -SYM_DATA(setup_once_ref, .long setup_once) #ifdef CONFIG_PAGE_TABLE_ISOLATION #define PGD_ALIGN (2 * PAGE_SIZE) -- 2.38.1