summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2021-06-03 11:52:02 +0300
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2021-06-13 20:16:42 +0300
commit6e121df14ccd5ca5142a21759beda7f12db0002b (patch)
tree1c11826acb0a652733c5a7b83c596ac0f5dacb7f /drivers
parenta91da54570856e3d3af4ba2884db71fbce06f70b (diff)
downloadlinux-6e121df14ccd5ca5142a21759beda7f12db0002b.tar.xz
ARM: 9090/1: Map the lowmem and kernel separately
Using our knowledge of where the physical kernel sections start and end we can split mapping of lowmem and kernel apart. This is helpful when you want to place the kernel independently from lowmem and not be limited to putting it into lowmem only, but also into places such as the VMALLOC area. We extensively rewrite the lowmem mapping code to account for all cases where the kernel image overlaps with the lowmem in different ways. This is helpful to handle situations which occur when the kernel is loaded in different places and makes it possible to place the kernel in a more random manner which is done with e.g. KASLR. We sprinkle some comments with illustrations and pr_debug() over it so it is also very evident to readers what is happening. We now use the kernel_sec_start and kernel_sec_end instead of relying on __pa() (phys_to_virt) to provide this. This is helpful if we want to resolve physical-to-virtual and virtual-to-physical mappings at runtime rather than compiletime, especially if we are not using patch phys to virt. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions