OSDN Git Service

powerpc/32s: move hash code patching out of MMU_init_hw()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 26 Apr 2019 16:23:35 +0000 (16:23 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 May 2019 15:20:26 +0000 (01:20 +1000)
commit72f208c6a8f7bc78ef5248babd9e6ed6302bd2a0
tree188de1b1f6237776858d75160c0310df3654eef8
parent2edb16efc899f9c232e2d880930b855e4cf55df4
powerpc/32s: move hash code patching out of MMU_init_hw()

For KASAN, hash table handling will be activated early for
accessing to KASAN shadow areas.

In order to avoid any modification of the hash functions while
they are still used with the early hash table, the code patching
is moved out of MMU_init_hw() and put close to the big-bang switch
to the final hash table.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/head_32.S
arch/powerpc/mm/book3s32/mmu.c
arch/powerpc/mm/mmu_decl.h