Re: [PATCH 3/3] x86: Define cpu_current_top_of_stack for 64-bit code
From: Denys Vlasenko
Date: Fri Apr 24 2015 - 15:35:37 EST
On Fri, Apr 24, 2015 at 5:31 PM, Denys Vlasenko <dvlasenk@xxxxxxxxxx>
> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/