Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752832AbbDARBq (ORCPT ); Wed, 1 Apr 2015 13:01:46 -0400 Received: from smtprelay0224.hostedemail.com ([216.40.44.224]:55864 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751433AbbDARBo (ORCPT ); Wed, 1 Apr 2015 13:01:44 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1714:1730:1747:1777:1792:2197:2199:2393:2553:2559:2562:3138:3139:3140:3141:3142:3351:3622:3653:3871:3876:4321:4605:5007:6117:6119:6261:6742:7875:7903:10004:10400:10848:10967:11026:11232:11233:11473:11657:11658:11914:12043:12517:12519:12555:12740:13069:13311:13357:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: plate94_661c21b3d6900 X-Filterd-Recvd-Size: 1998 Date: Wed, 1 Apr 2015 13:01:40 -0400 From: Steven Rostedt To: Denys Vlasenko Cc: Ingo Molnar , Linus Torvalds , Borislav Petkov , "H. Peter Anvin" , Andy Lutomirski , Oleg Nesterov , Frederic Weisbecker , Alexei Starovoitov , Will Drewry , Kees Cook , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/asm/head/64: Use __BOOT_TSS instead of literal 0x20 Message-ID: <20150401130140.67a3c6d2@gandalf.local.home> In-Reply-To: <1427899858-7165-2-git-send-email-dvlasenk@redhat.com> References: <1427899858-7165-1-git-send-email-dvlasenk@redhat.com> <1427899858-7165-2-git-send-email-dvlasenk@redhat.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 945 Lines: 37 On Wed, 1 Apr 2015 16:50:58 +0200 Denys Vlasenko wrote: > No code changes. > > diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/compressed/head_64.S > index 90c1521..b0c0d16 100644 > --- a/arch/x86/boot/compressed/head_64.S > +++ b/arch/x86/boot/compressed/head_64.S > @@ -165,7 +165,7 @@ ENTRY(startup_32) > /* After gdt is loaded */ > xorl %eax, %eax > lldt %ax > - movl $0x20, %eax > + movl $__BOOT_TSS, %eax __BOOT_TSS = (GDT_ENTRY_BOOT_TSS * 8) GDT_ENTRY_BOOT_TSS = (GDT_ENTRY_BOOT_CS + 2) GDT_ENTRY_BOOT_CS = 2 (2 + 2) * 8 = 4 * 8 = 32 = 0x20 Reviewed-by: Steven Rostedt -- Steve > ltr %ax > > /* -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/