Skip to content

Commit 1b2f470

Browse files
seehearfeelchenhuacai
authored andcommitted
LoongArch: Use UNWIND_HINT_END_OF_STACK for entry points
kernel_entry() and smpboot_entry() are the last frames for ORC unwinder, so it is proper to use the annotation UNWIND_HINT_END_OF_STACK for them. Link: https://lore.kernel.org/lkml/ots6w2ntyudj5ucs5eowncta2vmfssatpcqwzpar3ekk577hxi@j45dd4dmwx6x/ Suggested-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent d5be446 commit 1b2f470

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/loongarch/kernel/head.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ SYM_DATA(kernel_fsize, .long _kernel_fsize);
4242
.align 12
4343

4444
SYM_CODE_START(kernel_entry) # kernel entry point
45+
UNWIND_HINT_END_OF_STACK
4546

4647
SETUP_TWINS
4748
SETUP_MODES t0
@@ -113,6 +114,7 @@ SYM_CODE_END(kernel_entry)
113114
* function after setting up the stack and tp registers.
114115
*/
115116
SYM_CODE_START(smpboot_entry)
117+
UNWIND_HINT_END_OF_STACK
116118

117119
SETUP_TWINS
118120
SETUP_MODES t0

0 commit comments

Comments
 (0)