]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm/32s: rework mmu_mapin_ram()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 21 Feb 2019 19:08:39 +0000 (19:08 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 23 Feb 2019 10:04:31 +0000 (21:04 +1100)
commit55cd7236a9f91c6b642ae137592f551ef1f1d594
tree4a50b6701b0aadc0d9ce43c2316aa1e806ae94a1
parente573e37385729a3747314100b5e37e7bcdc8dee0
powerpc/mm/32s: rework mmu_mapin_ram()

This patch reworks mmu_mapin_ram() to be more generic and map as much
blocks as possible. It now supports blocks not starting at address 0.

It scans DBATs array to find free ones instead of forcing the use of
BAT2 and BAT3.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/ppc_mmu_32.c