]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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)
committerIngo Molnar <mingo@kernel.org>
Tue, 25 Jun 2019 08:23:45 +0000 (10:23 +0200)
commita9b3c6998d4a7d53a787cf4d0fd4a4c11239e517
treef81102633a51f43551b6dbae1c7a33aa95d9c92c
parent5e1246ff2d3707992e3bf3eaa45551f7fab97983
x86/stackframe: Move ENCODE_FRAME_POINTER to asm/frame.h

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>
arch/x86/entry/calling.h
arch/x86/entry/entry_32.S
arch/x86/include/asm/frame.h