x86/stackframe: Move ENCODE_FRAME_POINTER to asm/frame.h
authorPeter Zijlstra <peterz@infradead.org>
Wed, 8 May 2019 12:30:48 +0000 (14:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2020 21:33:28 +0000 (16:33 -0500)
commit510cd44619e873098283e0093bacfba1d7401160
tree4310ecbb1c77f847085a5c84d49ec63d89c3c22c
parent1cb14cce72a9f814d3bb6f6db34559a103dbbca2
x86/stackframe: Move ENCODE_FRAME_POINTER to asm/frame.h

commit a9b3c6998d4a7d53a787cf4d0fd4a4c11239e517 upstream.

In preparation for wider use, move the ENCODE_FRAME_POINTER macros to
a common header and provide inline asm versions.

These macros are used to encode a pt_regs frame for the unwinder; see
unwind_frame.c:decode_frame_pointer().

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Dmitry Safonov <dima@arista.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/entry/calling.h
arch/x86/entry/entry_32.S
arch/x86/include/asm/frame.h