]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/6xx: Handle DABR match before calling do_page_fault
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 19 Jul 2017 04:49:25 +0000 (14:49 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Aug 2017 06:06:26 +0000 (16:06 +1000)
commit01be57c6bf0c7f792e9211773222862bbcbc1e01
treea68e93971856f45d6474fb34eb763f894afa7f1b
parentaf2f7683b702caa25f66e1454f29c05c91b532a3
powerpc/6xx: Handle DABR match before calling do_page_fault

On legacy 6xx 32-bit procesors, we checked for the DABR match bit
in DSISR from do_page_fault(), in the middle of a pile of ifdef's
because all other CPU types do it in assembly prior to calling
do_page_fault. Fix that.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
[mpe: Add #ifdef CONFIG_6xx]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/entry_32.S
arch/powerpc/mm/fault.c