]> Git Repo - linux.git/commit
ARM: 9020/1: mm: use correct section size macro to describe the FDT virtual address
authorArd Biesheuvel <[email protected]>
Wed, 28 Oct 2020 13:20:55 +0000 (14:20 +0100)
committerRussell King <[email protected]>
Wed, 28 Oct 2020 14:59:30 +0000 (14:59 +0000)
commitfc2933c133744305236793025b00c2f7d258b687
tree7139823ebf8fcdc3b3e969bddc1262a6d2116bd2
parent421015713b306e47af95d4d61cdfbd96d462e4cb
ARM: 9020/1: mm: use correct section size macro to describe the FDT virtual address

Commit

  149a3ffe62b9dbc3 ("9012/1: move device tree mapping out of linear region")

created a permanent, read-only section mapping of the device tree blob
provided by the firmware, and added a set of macros to get the base and
size of the virtually mapped FDT based on the physical address. However,
while the mapping code uses the SECTION_SIZE macro correctly, the macros
use PMD_SIZE instead, which means something entirely different on ARM when
using short descriptors, and is therefore not the right quantity to use
here. So replace PMD_SIZE with SECTION_SIZE. While at it, change the names
of the macro and its parameter to clarify that it returns the virtual
address of the start of the FDT, based on the physical address in memory.

Tested-by: Joel Stanley <[email protected]>
Tested-by: Marek Szyprowski <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Russell King <[email protected]>
arch/arm/include/asm/memory.h
arch/arm/kernel/setup.c
This page took 0.058852 seconds and 4 git commands to generate.