• Wu Fei's avatar
    MIPS: Shrink the size of tlb handler · e0cc87f5
    Wu Fei authored
    By combining swapper_pg_dir and module_pg_dir, several if conditions
    can be eliminated from the tlb exception handler. The reason they
    can be combined is that, the effective virtual address of vmalloc
    returned is at the bottom, and of module_alloc returned is at the
    top. It also fixes the bug in vmalloc(), which happens when its
    return address is not covered by the first pgd.
    Signed-off-by: default avatarWu Fei <at.wufei@gmail.com>
    Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
    e0cc87f5
pgtable-64.c 1.71 KB