riscv: Move the linear mapping creation in its own function
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Fri, 24 Mar 2023 15:54:20 +0000 (16:54 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 19 Apr 2023 03:43:03 +0000 (20:43 -0700)
commit8589e346bbb679cf7a4b564f75295d94250058f0
tree486387d08965d6e39655f490737fec946f1fd443
parenta7407a1318a9d7b5a7de7ab19935de5fc4c47a57
riscv: Move the linear mapping creation in its own function

No change intended, it just splits the linear mapping creation from
setup_vm_final: this prepares for upcoming additions to the linear
mapping creation.

Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Tested-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20230324155421.271544-3-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/mm/init.c