On 03/11/2015 01:55 PM, Borislav Petkov wrote:
> On Tue, Mar 10, 2015 at 11:45:07AM +0100, Denys Vlasenko wrote:
>> @@ -894,11 +893,6 @@ extern unsigned long thread_saved_pc(struct task_struct 
>> *tsk);
>>  #define task_pt_regs(tsk)   ((struct pt_regs *)(tsk)->thread.sp0 - 1)
>>  extern unsigned long KSTK_ESP(struct task_struct *task);
>>  
>> -/*
>> - * User space RSP while inside the SYSCALL fast path
>> - */
>> -DECLARE_PER_CPU(unsigned long, old_rsp);
> 
> Please grep the whole arch/x86/ tree for old_rsp as there are more
> leftovers.

I think I did:

$ grep -r old_rsp arch/x86
arch/x86/xen/xen-asm_64.S:      movq %rsp, PER_CPU_VAR(old_rsp)
arch/x86/xen/xen-asm_64.S:      pushq PER_CPU_VAR(old_rsp)
arch/x86/xen/xen-asm_64.S:      movq %rsp, PER_CPU_VAR(old_rsp)
arch/x86/xen/xen-asm_64.S:      pushq PER_CPU_VAR(old_rsp)
arch/x86/kernel/process_64.c:__visible DEFINE_PER_CPU(unsigned long, old_rsp);
arch/x86/kernel/entry_64.S:     movq    %rsp,PER_CPU_VAR(old_rsp)
arch/x86/kernel/entry_64.S:     movq    PER_CPU_VAR(old_rsp),%rcx
arch/x86/kernel/entry_64.S:     /* 0(%rsp): old_rsp */

The only remaining use in C code is the definition in process_64.c
It is necessary for assembly (.S) files.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to