]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Use memblock_phys_alloc() for exception vector
authorPaul Burton <paul.burton@mips.com>
Tue, 30 Apr 2019 22:53:30 +0000 (22:53 +0000)
committerPaul Burton <paul.burton@mips.com>
Thu, 2 May 2019 18:20:26 +0000 (11:20 -0700)
commit96dcc4155ffb2bf51f07cdc827518f934afafa2d
tree907d5a3e54f708c036000303a0efd11094916c3b
parent2fdc92338c5ff86a7b34c5ba4012305b2f3b190c
MIPS: Use memblock_phys_alloc() for exception vector

Allocate the exception vector using memblock_phys_alloc() which gives us
a physical address, rather than the previous convoluted setup which
obtained a virtual address using memblock_alloc(), converted it to a
physical address & then back to a virtual address.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Tested-by: Serge Semin <fancer.lancer@gmail.com>
Cc: linux-mips@vger.kernel.org
arch/mips/kernel/traps.c