riscv: Introduce functions to switch pt_ops
authorAlexandre Ghiti <alexandre.ghiti@canonical.com>
Mon, 6 Dec 2021 10:46:47 +0000 (11:46 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 20 Jan 2022 01:54:06 +0000 (17:54 -0800)
commit840125a97abc7e676d839adc2743e8f703a156b3
treecd2139947ce68608732ce43e54ede76cf09ae0cd
parent2efad17e5794f4223bbeff1b2c568e3afd9a8c22
riscv: Introduce functions to switch pt_ops

This simply gathers the different pt_ops initialization in functions
where a comment was added to explain why the page table operations must
be changed along the boot process.

Signed-off-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/mm/init.c