LoongArch: Align the address of kernel_entry to 4KB
authorHuacai Chen <chenhuacai@loongson.cn>
Mon, 26 Sep 2022 14:25:29 +0000 (22:25 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 29 Sep 2022 02:15:00 +0000 (10:15 +0800)
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>
arch/loongarch/kernel/head.S

index c60eb66..3318643 100644 (file)
@@ -14,6 +14,8 @@
 
        __REF
 
+       .align 12
+
 SYM_CODE_START(kernel_entry)                   # kernel entry point
 
        /* Config direct window and set PG */