• Ingo Molnar's avatar
    x86/asm/entry/64: Merge the field offset into the THREAD_INFO() macro · f9d71854
    Ingo Molnar authored
    Before:
    
       TI_sysenter_return+THREAD_INFO(%rsp,3*8),%r10d
    
    After:
    
       movl    THREAD_INFO(TI_sysenter_return, %rsp, 3*8), %r10d
    
    to turn it into a clear thread_info accessor.
    
    No code changed:
    
     md5:
       fb4cb2b3ce05d89940ca304efc8ff183  ia32entry.o.before.asm
       fb4cb2b3ce05d89940ca304efc8ff183  ia32entry.o.after.asm
    
       e39f2958a5d1300158e276e4f7663263  entry_64.o.before.asm
       e39f2958a5d1300158e276e4f7663263  entry_64.o.after.asm
    Acked-by: default avatarAndy Lutomirski <luto@kernel.org>
    Acked-by: default avatarDenys Vlasenko <dvlasenk@redhat.com>
    Cc: Alexei Starovoitov <ast@plumgrid.com>
    Cc: Andy Lutomirski <luto@amacapital.net>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Borislav Petkov <bp@suse.de>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: H. Peter Anvin <hpa@zytor.com>
    Cc: Kees Cook <keescook@chromium.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Oleg Nesterov <oleg@redhat.com>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Will Drewry <wad@chromium.org>
    Link: http://lkml.kernel.org/r/20150324184411.GB14760@gmail.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
    f9d71854
entry_64.S 40.8 KB