Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031488AbbDXTff (ORCPT ); Fri, 24 Apr 2015 15:35:35 -0400 Received: from mail-qc0-f182.google.com ([209.85.216.182]:36178 "EHLO mail-qc0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933880AbbDXTfa (ORCPT ); Fri, 24 Apr 2015 15:35:30 -0400 MIME-Version: 1.0 In-Reply-To: <1429889495-27850-3-git-send-email-dvlasenk@redhat.com> References: <1429889495-27850-1-git-send-email-dvlasenk@redhat.com> <1429889495-27850-3-git-send-email-dvlasenk@redhat.com> From: Denys Vlasenko Date: Fri, 24 Apr 2015 21:35:08 +0200 Message-ID: Subject: Re: [PATCH 3/3] x86: Define cpu_current_top_of_stack for 64-bit code To: Denys Vlasenko Cc: Ingo Molnar , Linus Torvalds , Steven Rostedt , Borislav Petkov , "H. Peter Anvin" , Andy Lutomirski , Oleg Nesterov , Frederic Weisbecker , Alexei Starovoitov , Will Drewry , Kees Cook , X86 ML , Linux Kernel Mailing List Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1038 Lines: 26 On Fri, Apr 24, 2015 at 5:31 PM, Denys Vlasenko > diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h > index 23ba676..3754dac 100644 > --- a/arch/x86/include/asm/processor.h > +++ b/arch/x86/include/asm/processor.h > @@ -304,6 +304,8 @@ DECLARE_PER_CPU_SHARED_ALIGNED(struct tss_struct, cpu_tss); > > #ifdef CONFIG_X86_32 > DECLARE_PER_CPU(unsigned long, cpu_current_top_of_stack); > +#else > +#define cpu_current_top_of_stack (cpu_tss + TSS_sp0) > #endif > > /* > diff --git a/arch/x86/include/asm/thread_info.h b/arch/x86/include/asm/thread_info.h Oops... this hunk (one touching processor.h) shouldn't be there. It is bogus. It works simply because this define isn't used by 64-bit builds. Just drop this hunk. The rest is correct. -- 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/