mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 13:06:59 +02:00
riscv: put interrupt entries into .irqentry.text
commit87615e95f6upstream. 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:7db91e57a0("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7aa18f77e1
commit
a08b414d1e
|
|
@ -16,6 +16,8 @@
|
|||
#include <asm/errata_list.h>
|
||||
#include <linux/sizes.h>
|
||||
|
||||
.section .irqentry.text, "ax"
|
||||
|
||||
SYM_CODE_START(handle_exception)
|
||||
/*
|
||||
* If coming from userspace, preserve the user thread pointer and load
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user