summaryrefslogtreecommitdiff
path: root/arch/riscv/include/asm
diff options
context:
space:
mode:
authorAlexandre Ghiti <alex@ghiti.fr>2021-07-23 15:01:28 +0200
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-08-11 22:41:38 -0700
commitfe45ffa4c505783637233609b677446020738b87 (patch)
tree32ec59da03e33565b7bd0494ae73272977218623 /arch/riscv/include/asm
parent977765ce319b98939205cf07aa1d76150713c69b (diff)
downloadlwn-fe45ffa4c505783637233609b677446020738b87.tar.gz
lwn-fe45ffa4c505783637233609b677446020738b87.zip
riscv: Move early fdt mapping creation in its own function
The code that handles the early fdt mapping is hard to read and does not create the same mapping size depending on the kernel: - for 64-bit, 2 PMD entries are used which amounts to a 4MB mapping - for 32-bit, 2 PGDIR entries are used which amounts to a 8MB mapping So keep using 2 PMD entries for 64-bit and use only one PGD entry for 32-bit needed to cover 4MB. Move that into a new function called create_fdt_early_page_table which, using the same naming as create_kernel_page_table. Signed-off-by: Alexandre Ghiti <alex@ghiti.fr> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/include/asm')
0 files changed, 0 insertions, 0 deletions