x86/asm/entry/64: Rename THREAD_INFO() to ASM_THREAD_INFO()
The THREAD_INFO() macro has a somewhat confusingly generic name, defined in a generic .h C header file. It also does not make it clear that it constructs a memory operand for use in assembly code. Rename it to ASM_THREAD_INFO() to make it all glaringly obvious on first glance. Acked-by: Borislav Petkov <bp@suse.de> Cc: Alexei Starovoitov <ast@plumgrid.com> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Andy Lutomirski <luto@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Denys Vlasenko <dvlasenk@redhat.com> 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/20150324184442.GC14760@gmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
parent
f9d71854b4
commit
dca5b52ad7
3 changed files with 19 additions and 19 deletions
|
@ -222,7 +222,7 @@ static inline unsigned long current_stack_pointer(void)
|
|||
* currently at exactly SIZEOF_PTREGS bytes away from the top of the
|
||||
* stack:
|
||||
*
|
||||
* mov THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS), %eax
|
||||
* mov ASM_THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS), %eax
|
||||
*
|
||||
* will translate to:
|
||||
*
|
||||
|
@ -230,7 +230,7 @@ static inline unsigned long current_stack_pointer(void)
|
|||
*
|
||||
* which is below the current RSP by almost 16K.
|
||||
*/
|
||||
#define THREAD_INFO(field, reg, off) ((field)+(off)-THREAD_SIZE)(reg)
|
||||
#define ASM_THREAD_INFO(field, reg, off) ((field)+(off)-THREAD_SIZE)(reg)
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue