Skip to content

Commit 87615e9

Browse files
covanampalmer-dabbelt
authored andcommitted
riscv: put interrupt entries into .irqentry.text
The interrupt entries are expected to be in the .irqentry.text section. For example, for kprobes to work properly, exception code cannot be probed; this is ensured by blacklisting addresses in the .irqentry.text section. Fixes: 7db91e5 ("RISC-V: Task implementation") Signed-off-by: Nam Cao <namcaov@gmail.com> Link: https://lore.kernel.org/r/20230821145708.21270-1-namcaov@gmail.com Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent 559fe94 commit 87615e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/riscv/kernel/entry.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
#include <asm/asm-offsets.h>
1515
#include <asm/errata_list.h>
1616

17+
.section .irqentry.text, "ax"
18+
1719
SYM_CODE_START(handle_exception)
1820
/*
1921
* If coming from userspace, preserve the user thread pointer and load

0 commit comments

Comments
 (0)