summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorHuacai Chen <chenhuacai@loongson.cn>2022-09-26 22:25:29 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2022-09-29 10:15:00 +0800
commit2938431e9338bf4e8d434513d3a5832d64c0fa8b (patch)
tree9fb271169040fe5aee6eeda917117edee258ceb2 /arch
parentf76349cf41451c5c42a99f18a9163377e4b364ff (diff)
LoongArch: Align the address of kernel_entry to 4KB
Align the address of kernel_entry to 4KB, to avoid early tlb miss exception in case the entry code crosses page boundary. Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch')
-rw-r--r--arch/loongarch/kernel/head.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/loongarch/kernel/head.S b/arch/loongarch/kernel/head.S
index c60eb66793e3..331864369e49 100644
--- a/arch/loongarch/kernel/head.S
+++ b/arch/loongarch/kernel/head.S
@@ -14,6 +14,8 @@
__REF
+ .align 12
+
SYM_CODE_START(kernel_entry) # kernel entry point
/* Config direct window and set PG */