summaryrefslogtreecommitdiff
path: root/arch/riscv/include
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2026-06-06 20:17:52 -0600
committerPaul Walmsley <pjw@kernel.org>2026-06-06 20:17:52 -0600
commita24c7f3523ff1112e8dc6c45cea7d9397345a627 (patch)
treeb280bf7e763c2178fedc898e3fb93094927821cf /arch/riscv/include
parent1e01a786a904274d308a99b00a0f20e0d288eeff (diff)
downloadlinux-next-a24c7f3523ff1112e8dc6c45cea7d9397345a627.tar.gz
linux-next-a24c7f3523ff1112e8dc6c45cea7d9397345a627.zip
riscv/purgatory: add asm/purgatory.h
Add arch/riscv/include/asm/purgatory.h and provide the purgatory() prototype via the architecture header, mirroring the x86 layout. Remove the workaround from arch/riscv/purgatory/purgatory.c. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Link: https://patch.msgid.link/20260509073850.44595-4-thorsten.blum@linux.dev [pjw@kernel.org: drop superfluous extern in header file] Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'arch/riscv/include')
-rw-r--r--arch/riscv/include/asm/purgatory.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/purgatory.h b/arch/riscv/include/asm/purgatory.h
new file mode 100644
index 000000000000..5a827e6752b7
--- /dev/null
+++ b/arch/riscv/include/asm/purgatory.h
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _ASM_RISCV_PURGATORY_H
+#define _ASM_RISCV_PURGATORY_H
+
+#ifndef __ASSEMBLER__
+#include <linux/purgatory.h>
+
+void purgatory(void);
+#endif /* __ASSEMBLER__ */
+
+#endif /* _ASM_RISCV_PURGATORY_H */