]> 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)
commit560ac828d0339f1fd18deb18723ba6f6782afc40
tree4a50b6701b0aadc0d9ce43c2316aa1e806ae94a1
parent3ab25ea75e2cfe6b8fe1a16440a3fc68efebb53c
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