]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Shrink the size of tlb handler
authorWu Fei <at.wufei@gmail.com>
Thu, 3 Sep 2009 14:29:53 +0000 (22:29 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 17 Sep 2009 18:07:51 +0000 (20:07 +0200)
commit58bfbf5076263111265a5e5afe1d14cb094f97e8
treed68107417b92d83493bbb95c08af98b0f8597220
parentad8da53593386c4fa1c7c5e476c9defaa7fce3cb
MIPS: Shrink the size of tlb handler

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: Wu Fei <at.wufei@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/pgtable-64.h
arch/mips/mm/init.c
arch/mips/mm/pgtable-64.c
arch/mips/mm/tlbex.c