xref: /linux/arch/loongarch/include/asm/unwind_hints.h (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_LOONGARCH_UNWIND_HINTS_H
3 #define _ASM_LOONGARCH_UNWIND_HINTS_H
4 
5 #include <linux/objtool.h>
6 #include <asm/orc_types.h>
7 
8 #ifdef __ASSEMBLY__
9 
10 .macro UNWIND_HINT_UNDEFINED
11 	UNWIND_HINT type=UNWIND_HINT_TYPE_UNDEFINED
12 .endm
13 
14 .macro UNWIND_HINT_END_OF_STACK
15 	UNWIND_HINT type=UNWIND_HINT_TYPE_END_OF_STACK
16 .endm
17 
18 .macro UNWIND_HINT_REGS
19 	UNWIND_HINT sp_reg=ORC_REG_SP type=UNWIND_HINT_TYPE_REGS
20 .endm
21 
22 .macro UNWIND_HINT_FUNC
23 	UNWIND_HINT sp_reg=ORC_REG_SP type=UNWIND_HINT_TYPE_CALL
24 .endm
25 
26 #endif /* __ASSEMBLY__ */
27 
28 #endif /* _ASM_LOONGARCH_UNWIND_HINTS_H */
29