Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4786634ybf; Wed, 4 Mar 2020 10:37:51 -0800 (PST) X-Google-Smtp-Source: ADFU+vuvc8tvcfkkaRXMFekKeghHkvD5Y7jCmZfDJ7ltEjHa2KB4Kb/W+uEj+Jz2WWwmLf1+oN3R X-Received: by 2002:a05:6830:60b:: with SMTP id w11mr3554310oti.350.1583347071066; Wed, 04 Mar 2020 10:37:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583347071; cv=none; d=google.com; s=arc-20160816; b=qr+K1Poiciv0fgaXyod9DNuIlgOf4QcaJwynX1H23M4N9GWwtlS2SJyZ0HPvFey7rT 1/KZgN6qFZsZcda67qfoK86rPHS5bqr0m1b6VgMkdhVwrA+DEWoMJ7P2HD4AuX3JhNca 3XW9urcXiw30ITBMnYi8v4CjenHDeDiMe1Z3je3J0vwr1l3xgQAmxETVNYOSgIgT3K1l E+/ljaDhi5TxwKWPRH7P9cvwE4TE712pcz/ZEU2W4nK82wH5T/ekus+7BPC2IBI6Rdki vc1LbP4o7TfebmCpY60SB/3xdI/gbDC/DLg+99Pjr6xuo3ZdFy8Qr0DyZiyVpkaKjI9t R2EA== 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 :message-id:date:subject:cc:to:from; bh=t72VC5FU9skZvPoRXT4JDlpkMHlun4zsQXYH+X7/xVY=; b=qMwSbfNXASyXvBoRoDejEzho8c7jMv21w6wnjUxFEukiFJQgc751yKXz/oWZ54oqtD E5OlcVYCfBrJ0Ft+FtUgzwrQR8uKqKDiKqulXle7DwGupFr/g86tYa44AhLtMMnqe/8q L8ZQM/00YriCRU4ADZWOI1L+/+BIMGu31T6873ylXv/3YmzYmrTBA1FOiCVjHYh1KLBC m/dbOhB9zYjvzE2GzrCSYhQ2WzGUuEceVDOrHkMBOY4M0RRvn05ZKvhQn6x9koWHFGec UysadfN3mGN0Vupls3Ec4gc+6GlqR82bY16dBoKEt3Lhfis2lQYUTNu5SvbdS6PYMb1d 8shw== 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 z24si1837865otm.188.2020.03.04.10.37.37; Wed, 04 Mar 2020 10:37:51 -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 S1730215AbgCDShC (ORCPT + 99 others); Wed, 4 Mar 2020 13:37:02 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:41627 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730167AbgCDShB (ORCPT ); Wed, 4 Mar 2020 13:37:01 -0500 Received: by mail-qt1-f195.google.com with SMTP id l21so2142137qtr.8; Wed, 04 Mar 2020 10:37:01 -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:mime-version :content-transfer-encoding; bh=t72VC5FU9skZvPoRXT4JDlpkMHlun4zsQXYH+X7/xVY=; b=UC5KPX1gkAlUUPc2kuYqJ0+ltoF1px5EcNyw3DMaGx8n+BcTrVlCa3LG8V4y7sZzOd c2FsojccE2PuGcxgJ/1TBLWcoD+HfX+CC8AZftjDkN3WW1pze0DHVZXcSkhYGMtjgjSE 5dmvkQAl6C1mOf2AQM3CslGr4AoIPzJPTq8L9gxbFcWnhW96sJGQXjGOZZHdybnoJL/x wSzczQq6SUHVmPlaIC5YQriShuTFhKIGLUTLMnJ4dbhaRirV+A2euJcOxWWILhcvbqKm vJ8GSA5exkg6KLsCat9nspe13+y1gPlhOb5gsMPM+f6qtcg3z3HL/uk5hwWjotTFd/7P hS7g== X-Gm-Message-State: ANhLgQ3bm+fpC84Lf28pnMw+l//Iiy9ADxqa6CZDXJjoTi9qX5RA4W+A KoPlKcUepAMvXrIol93Fl2g= X-Received: by 2002:ac8:7a9a:: with SMTP id x26mr3721562qtr.137.1583347020632; Wed, 04 Mar 2020 10:37:00 -0800 (PST) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id g2sm14156230qkb.27.2020.03.04.10.36.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Mar 2020 10:37:00 -0800 (PST) From: Arvind Sankar To: Ard Biesheuvel Cc: linux-efi@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] efi/x86: Move mixed-mode thunk to efi/libstub Date: Wed, 4 Mar 2020 13:36:59 -0500 Message-Id: <20200304183659.257828-1-nivedita@alum.mit.edu> X-Mailer: git-send-email 2.24.1 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 Commit c2d0b470154c ("efi/libstub/x86: Incorporate eboot.c into libstub") moved all the callers of the mixed-mode thunk into efi/libstub, so move the thunk itself as well for completeness. Signed-off-by: Arvind Sankar --- arch/x86/boot/compressed/Makefile | 1 - drivers/firmware/efi/libstub/Makefile | 1 + .../firmware/efi/libstub/x86_64-thunk.S | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename arch/x86/boot/compressed/efi_thunk_64.S => drivers/firmware/efi/libstub/x86_64-thunk.S (100%) diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile index e51879bdc51c..047004d39a55 100644 --- a/arch/x86/boot/compressed/Makefile +++ b/arch/x86/boot/compressed/Makefile @@ -88,7 +88,6 @@ endif vmlinux-objs-$(CONFIG_ACPI) += $(obj)/acpi.o vmlinux-objs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a -vmlinux-objs-$(CONFIG_EFI_MIXED) += $(obj)/efi_thunk_$(BITS).o # The compressed kernel is built with -fPIC/-fPIE so that a boot loader # can place it anywhere in memory and it will still run. However, since diff --git a/drivers/firmware/efi/libstub/Makefile b/drivers/firmware/efi/libstub/Makefile index 4d6246c6f651..85b66e5e5d1f 100644 --- a/drivers/firmware/efi/libstub/Makefile +++ b/drivers/firmware/efi/libstub/Makefile @@ -55,6 +55,7 @@ lib-$(CONFIG_EFI_ARMSTUB) += arm-stub.o fdt.o string.o \ lib-$(CONFIG_ARM) += arm32-stub.o lib-$(CONFIG_ARM64) += arm64-stub.o lib-$(CONFIG_X86) += x86-stub.o +lib-$(CONFIG_EFI_MIXED) += x86_64-thunk.o CFLAGS_arm32-stub.o := -DTEXT_OFFSET=$(TEXT_OFFSET) CFLAGS_arm64-stub.o := -DTEXT_OFFSET=$(TEXT_OFFSET) diff --git a/arch/x86/boot/compressed/efi_thunk_64.S b/drivers/firmware/efi/libstub/x86_64-thunk.S similarity index 100% rename from arch/x86/boot/compressed/efi_thunk_64.S rename to drivers/firmware/efi/libstub/x86_64-thunk.S -- 2.24.1