Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp606597ybl; Tue, 7 Jan 2020 11:46:59 -0800 (PST) X-Google-Smtp-Source: APXvYqw0c1CUE++bE/wt2oxtNTK4EIZBf4s2ETgfCVeRuRnVjb9pdc88ID11KJBgTYrqQarpY6HZ X-Received: by 2002:aca:50cd:: with SMTP id e196mr51529oib.178.1578426419077; Tue, 07 Jan 2020 11:46:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578426419; cv=none; d=google.com; s=arc-20160816; b=kvXKSmz/mDKvUm1aXO7BZXAfIDNUNdnugRamZVih2224ZmNVUEyU1F8Dny3Ulz/3mq wwvfNifbh2hAYGJJ4nUAeAuee6/aKvT6Lh6lpeTok+6Sf+e9abF5SPyG1XAOwEJo7ikN XclclAbsVnWi/dVEtrKjz39x/igz+h56IupC7tQXIC0K+lDs8MLBe0M5I7wBpnZyGiC2 cF+ykwmI98bAtubYhfHXSPHUSR7ee/WeQxUDHOYym7S3b7Z2F6e41VKaH3eETQmFqdGX i98MCTCI3dhxz/FcilKA9UBcLZWNxV55/fNgH/dzMiGFVchfP2mpgKRr7MFGf2x7gXTA jG1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ptIoTNzH/x5OyREv4tWBlwHk2cNJ81G7inlJs7+x/90=; b=my+ytkr8jjMa7fRrnii2oDu34G4wJ426fR1j+DUHWtX5lWFkyauNfkWRv0+q3P8Y/k WDsmFgz4t0p27EVDJp/7dSEqEo369ezOg9LyjVkMv4Au74fKCX01PX9WxKX9c/gIcyQZ g+A35Tu3iLmGl3MpHqrJjTW020TJvdnbg69cpOyd4Ej0rlF1yXMIw5+y5XJQA3Nj0meb lXbJ9nMH1p2mFgCdgO9van7muouqrOUiDWC8GiMscyo95m+kMeXq/fw1sFrhIKTIeK4T SJH1lHh+uOJPJQi47eCBUkyEwFsicgRpVlkGeLog9Fprg5GDQiRP/rUWcdH+E50fY/df zusw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n14si393941otk.179.2020.01.07.11.46.47; Tue, 07 Jan 2020 11:46:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728779AbgAGTol (ORCPT + 99 others); Tue, 7 Jan 2020 14:44:41 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:42417 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728369AbgAGTok (ORCPT ); Tue, 7 Jan 2020 14:44:40 -0500 Received: by mail-qt1-f193.google.com with SMTP id j5so742070qtq.9 for ; Tue, 07 Jan 2020 11:44:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ptIoTNzH/x5OyREv4tWBlwHk2cNJ81G7inlJs7+x/90=; b=kfyfnGhREnJ/E97ZKaeRrmj0+eg1QlN6ubzWx8wPD6myxzMquv5eeUj3lpP32EzbTC /A7g7VghqHCwCGCi7ricUqJU/vK8ryp+YBR7pVFP92ccj/VogMDK4nN2aMIDkr6KnQtW tDepj0QXmvAVQ/nvLVy4DQsqOmhkROxWSbznGHWwibI5iTY2uHsFy7a0p8vL0Ug9Td84 Z7VDeeTXk78Pb63hLiXYejnO5NDTB4Mf28fz/44/RAU8PGZlA2C7vsa3aO12Yc8jsB/i JEs5VCYT+OmEWbAbVBVb05W6vCcSXYjhGO9eVybEEAy4oTjM1uBYyOUfl6FC691JW9y2 f2Qg== X-Gm-Message-State: APjAAAUs285vCLM1Xv9dETLJTTriBlqVLFn6fK8L7qVypJenGMKm8ZkM ojPbkoQo3ucCDh9r0geWKzE= X-Received: by 2002:ac8:21b5:: with SMTP id 50mr564752qty.10.1578426279295; Tue, 07 Jan 2020 11:44:39 -0800 (PST) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id s20sm280137qkg.131.2020.01.07.11.44.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2020 11:44:38 -0800 (PST) From: Arvind Sankar To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" Cc: x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] x86/boot/compressed/64: Use leal to initialize boot stack pointer Date: Tue, 7 Jan 2020 14:44:35 -0500 Message-Id: <20200107194436.2166846-2-nivedita@alum.mit.edu> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200107194436.2166846-1-nivedita@alum.mit.edu> References: <20200107194436.2166846-1-nivedita@alum.mit.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It's shorter, and it's what we use in every other place, so make it consistent. Signed-off-by: Arvind Sankar --- arch/x86/boot/compressed/head_64.S | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/compressed/head_64.S index 58a512e33d8d..edd29340bcfd 100644 --- a/arch/x86/boot/compressed/head_64.S +++ b/arch/x86/boot/compressed/head_64.S @@ -81,9 +81,7 @@ SYM_FUNC_START(startup_32) subl $1b, %ebp /* setup a stack and make sure cpu supports long mode. */ - movl $boot_stack_end, %eax - addl %ebp, %eax - movl %eax, %esp + leal boot_stack_end(%ebp), %esp call verify_cpu testl %eax, %eax -- 2.24.1