summaryrefslogtreecommitdiff
path: root/arch/riscv/purgatory/entry.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/purgatory/entry.S')
-rw-r--r--arch/riscv/purgatory/entry.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/riscv/purgatory/entry.S b/arch/riscv/purgatory/entry.S
index 0194f4554130..a4ede42bc151 100644
--- a/arch/riscv/purgatory/entry.S
+++ b/arch/riscv/purgatory/entry.S
@@ -11,6 +11,8 @@
.macro size, sym:req
.size \sym, . - \sym
.endm
+#include <asm/asm.h>
+#include <linux/linkage.h>
.text
@@ -39,6 +41,7 @@ size purgatory_start
.data
+.align LGREG
.globl riscv_kernel_entry
riscv_kernel_entry:
.quad 0