Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753812AbbDBMdy (ORCPT ); Thu, 2 Apr 2015 08:33:54 -0400 Received: from terminus.zytor.com ([198.137.202.10]:60796 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753335AbbDBMdt (ORCPT ); Thu, 2 Apr 2015 08:33:49 -0400 Date: Thu, 2 Apr 2015 05:33:19 -0700 From: tip-bot for Denys Vlasenko Message-ID: Cc: bp@suse.de, luto@amacapital.net, tglx@linutronix.de, bp@alien8.de, wad@chromium.org, mingo@kernel.org, hpa@zytor.com, torvalds@linux-foundation.org, fweisbec@gmail.com, rostedt@goodmis.org, keescook@chromium.org, linux-kernel@vger.kernel.org, oleg@redhat.com, ast@plumgrid.com, dvlasenk@redhat.com Reply-To: rostedt@goodmis.org, keescook@chromium.org, dvlasenk@redhat.com, ast@plumgrid.com, oleg@redhat.com, linux-kernel@vger.kernel.org, fweisbec@gmail.com, mingo@kernel.org, bp@alien8.de, wad@chromium.org, hpa@zytor.com, torvalds@linux-foundation.org, bp@suse.de, luto@amacapital.net, tglx@linutronix.de In-Reply-To: <1427899858-7165-2-git-send-email-dvlasenk@redhat.com> References: <1427899858-7165-2-git-send-email-dvlasenk@redhat.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/asm] x86/asm/boot/64: Use __BOOT_TSS instead of literal $0x20 Git-Commit-ID: 40e4f2d177f748a83e7639554ea7d11568a9fa1f X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1855 Lines: 53 Commit-ID: 40e4f2d177f748a83e7639554ea7d11568a9fa1f Gitweb: http://git.kernel.org/tip/40e4f2d177f748a83e7639554ea7d11568a9fa1f Author: Denys Vlasenko AuthorDate: Wed, 1 Apr 2015 16:50:58 +0200 Committer: Ingo Molnar CommitDate: Thu, 2 Apr 2015 12:00:20 +0200 x86/asm/boot/64: Use __BOOT_TSS instead of literal $0x20 __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 No code changes. Signed-off-by: Denys Vlasenko Reviewed-by: Steven Rostedt Acked-by: Borislav Petkov Cc: Alexei Starovoitov Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Frederic Weisbecker Cc: H. Peter Anvin Cc: Kees Cook Cc: Linus Torvalds Cc: Oleg Nesterov Cc: Will Drewry Link: http://lkml.kernel.org/r/1427899858-7165-2-git-send-email-dvlasenk@redhat.com Signed-off-by: Ingo Molnar --- arch/x86/boot/compressed/head_64.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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/