Received: by 10.223.176.5 with SMTP id f5csp441365wra; Fri, 9 Feb 2018 01:27:28 -0800 (PST) X-Google-Smtp-Source: AH8x224nsnN+tAlOxCSx7N6cj7kbg2kLZqZpqWB8ULQLTwyMRMIHjwy7FKF5XleMLpZ1ktIAVwgy X-Received: by 10.101.98.133 with SMTP id f5mr1826912pgv.357.1518168448398; Fri, 09 Feb 2018 01:27:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518168448; cv=none; d=google.com; s=arc-20160816; b=LSO8x3OSqHaFWik4KPCi4WrP2C+bqjYYofTVC2BnWHiZMEhDo8C3V+woD36L+oo7ud R9kVSYcMkkG1vix01jFPBgYhTYX61p3FReeMx7rBSSdcg9RiZyxrtuTNcPB7LNjoBB7+ OrjKwoHooruVvf/hlnC8AJ+6Hkgm/freKnVlE7NvDOFnxqyWEWgbwHAtqplzemBsPAyJ xnNrAXH1OUkj18DL1IlwG/O586ZoNjDFBzu6AsQVPnZqNR7ks3pThyB4LUVyHq0deN/d qPwF2iYucVSTMAluKIsDHmkHqsouJT0Nj+NVQSLYOHJbc5OARfx2AEyY0Ostt0/+RmVw z1Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=JA4ft/zbEQyrYYEDRQTfooNSsNBYYyu6NoZlpHRNmDU=; b=u/Xoszs848ggOi20NdexXu13H2X3FntK+NFI+foaOY5PLMarZ6Xt5TLM0gnPaUEWH3 ha9UTPOxBXqparWmBPTleRuS8NH9RaQq1na6BgHKqwhe+rn8GeS6YBIIPNyIzQp+3yL2 7Y+e3wlO4UzK7dg/ePeXm2w0O5OPV/+BSNcovdurSZPXfEtcLojcuSQLRnFKW0gdhTNY jWKREQLYCBtJnYEQ6pQ2dxmH/EfniB1fkQQwMh6vjcOzFx+K6q9CuynXbC6iaNPlOF7H AT3J4fYTd85L7cFVmbFNBBYDHkZA2h4QEqqfFMoS0jMkLpUHeh7I+Ygk6hRIr2XxtaKb cjIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@8bytes.org header.s=mail-1 header.b=IizrX642; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k13si1133151pgs.339.2018.02.09.01.27.11; Fri, 09 Feb 2018 01:27:28 -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; dkim=fail (test mode) header.i=@8bytes.org header.s=mail-1 header.b=IizrX642; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752193AbeBIJZ7 (ORCPT + 99 others); Fri, 9 Feb 2018 04:25:59 -0500 Received: from 8bytes.org ([81.169.241.247]:42860 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751041AbeBIJZz (ORCPT ); Fri, 9 Feb 2018 04:25:55 -0500 Received: by theia.8bytes.org (Postfix, from userid 1000) id DDB13F3; Fri, 9 Feb 2018 10:25:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=8bytes.org; s=mail-1; t=1518168350; bh=kKXVqUUBaBi5kUHLLwCRA7vB0mWJ71gKMklmglDA7zE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IizrX642oWU8A1AokqyZ8TBttPjmSQT0p3IbJybcSFa+M32I393E2Tg9xBj47XLC7 02aq+APQwfBn7Y3oSa6HMrUs53Z8o+Bx5qmyiJt3P06XMq2597bOpjGFPliGiq2Smq 6QlhSfp5YwtniLDau/d7mpL5VvplJCECp+CmoUww6eYcaY1mmRCF4vca5ozmwhy7Ah 0H0UcpByvE5/fCSFjrLlQjHDYG6QZcy6seJip1M+Bm2xnoCSPDlW1RRgNmGJ2zFeOi NcRiPckRYxv4ziTD8K5X4v59KTnM/ATAY6g0VCNSnz6DURS9Rb0Ip+T6tmlHvI7l0n V0GwuxUwUq7sg== From: Joerg Roedel To: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" Cc: x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Linus Torvalds , Andy Lutomirski , Dave Hansen , Josh Poimboeuf , Juergen Gross , Peter Zijlstra , Borislav Petkov , Jiri Kosina , Boris Ostrovsky , Brian Gerst , David Laight , Denys Vlasenko , Eduardo Valentin , Greg KH , Will Deacon , aliguori@amazon.com, daniel.gruss@iaik.tugraz.at, hughd@google.com, keescook@google.com, Andrea Arcangeli , Waiman Long , Pavel Machek , jroedel@suse.de, joro@8bytes.org Subject: [PATCH 01/31] x86/asm-offsets: Move TSS_sp0 and TSS_sp1 to asm-offsets.c Date: Fri, 9 Feb 2018 10:25:10 +0100 Message-Id: <1518168340-9392-2-git-send-email-joro@8bytes.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518168340-9392-1-git-send-email-joro@8bytes.org> References: <1518168340-9392-1-git-send-email-joro@8bytes.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joerg Roedel These offsets will be used in 32 bit assembly code as well, so make them available for all of x86 code. Signed-off-by: Joerg Roedel --- arch/x86/kernel/asm-offsets.c | 4 ++++ arch/x86/kernel/asm-offsets_64.c | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/asm-offsets.c b/arch/x86/kernel/asm-offsets.c index 76417a9..232152c 100644 --- a/arch/x86/kernel/asm-offsets.c +++ b/arch/x86/kernel/asm-offsets.c @@ -103,4 +103,8 @@ void common(void) { OFFSET(CPU_ENTRY_AREA_entry_trampoline, cpu_entry_area, entry_trampoline); OFFSET(CPU_ENTRY_AREA_entry_stack, cpu_entry_area, entry_stack_page); DEFINE(SIZEOF_entry_stack, sizeof(struct entry_stack)); + + /* Offset for sp0 and sp1 into the tss_struct */ + OFFSET(TSS_sp0, tss_struct, x86_tss.sp0); + OFFSET(TSS_sp1, tss_struct, x86_tss.sp1); } diff --git a/arch/x86/kernel/asm-offsets_64.c b/arch/x86/kernel/asm-offsets_64.c index bf51e51..d2eba73 100644 --- a/arch/x86/kernel/asm-offsets_64.c +++ b/arch/x86/kernel/asm-offsets_64.c @@ -65,8 +65,6 @@ int main(void) #undef ENTRY OFFSET(TSS_ist, tss_struct, x86_tss.ist); - OFFSET(TSS_sp0, tss_struct, x86_tss.sp0); - OFFSET(TSS_sp1, tss_struct, x86_tss.sp1); BLANK(); #ifdef CONFIG_CC_STACKPROTECTOR -- 2.7.4