• Andreas Färber's avatar
    tegra: Fix mmap_region_t struct mismatch · 28db3e96
    Andreas Färber authored
    Commit fdb1964c
    
     ("xlat: Introduce
    MAP_REGION2() macro") added a granularity field to mmap_region_t.
    
    Tegra platforms were using the v2 xlat_tables implementation in
    common/tegra_common.mk, but v1 xlat_tables.h headers in soc/*/plat_setup.c
    where arrays are being defined. This caused the next physical address to
    be read as granularity, causing EINVAL error and triggering an assert.
    
    Consistently use xlat_tables_v2.h header to avoid this.
    
    Fixes ARM-software/tf-issues#548.
    Signed-off-by: default avatarAndreas Färber <afaerber@suse.de>
    28db3e96
plat_setup.c 3.27 KB