Skip to content
Unverified Commit c99127c4 authored by Alexandre Ghiti's avatar Alexandre Ghiti Committed by Palmer Dabbelt
Browse files

riscv: Make sure the linear mapping does not use the kernel mapping



For 64-bit kernel, the end of the address space is occupied by the
kernel mapping and currently, the functions to populate the kernel page
tables (i.e. create_p*d_mapping) do not override existing mapping so we
must make sure the linear mapping does not map memory in the kernel mapping
by clipping the memory above the memory limit.

Signed-off-by: default avatarAlexandre Ghiti <alex@ghiti.fr>
Fixes: c9811e37

 ("riscv: Add mem kernel parameter support")
Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
parent c09dc9e1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment