• Huacai Chen's avatar
    LoongArch: Flush TLB earlier at initialization · 1299a129
    Huacai Chen authored
    Move local_flush_tlb_all() earlier (just after setup_ptwalker() and
    before page allocation). This can avoid stale TLB entries misguiding
    the later page allocation. Without this patch the second kernel of
    kexec/kdump fails to boot SMP.
    
    BTW, move output_pgtable_bits_defines() into tlb_init() since it has
    nothing to do with tlb handler setup.
    Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
    1299a129
tlb.c 7.48 KB