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)
commitf995adb0ac5bcfa0d396ba7706aab420c7a6fec2
tree907d5a3e54f708c036000303a0efd11094916c3b
parentcf0c4876684d287b6fe72699598517ca9b827216
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