Skip to contentSkip to conversation

riscv: put interrupt entries into .irqentry.text

PATCH New Nam Cao 1 participant 1 message Aug 21, 2023 RISC-V

lore
Share & tools
lore

Nam Cao

author
#0 lore raw

PATCH v2 1/1 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 7db91e57a0ac ("RISC-V: Task implementation")

---
v2: add fix tag

 arch/riscv/kernel/entry.S | 2 ++
 1 file changed, 2 insertions(+)
arch/riscv/kernel/entry.S +2 -0
index 143a2bb3e697..d7dd9030df3f 100644
@@ -14,6 +14,8 @@
 #include <asm/asm-offsets.h>
 #include <asm/errata_list.h>
 
+	.section .irqentry.text, "ax"
+
 SYM_CODE_START(handle_exception)
 	/*
 	 * If coming from userspace, preserve the user thread pointer and load
Signature · 1 line
2.34.1