• Andre Przywara's avatar
    rpi4: Determine BL33 entry point at runtime · 448fb352
    Andre Przywara authored
    
    
    Now that we have the armstub magic value in place, the GPU firmware will
    write the kernel load address (and DTB address) into our special page,
    so we can always easily access the actual location without hardcoding
    any addresses into the BL31 image.
    
    Make the compile-time defined PRELOADED_BL33_BASE macro optional, and
    read the BL33 entry point from the magic location, if the macro was not
    defined. We do the same for the DTB address.
    
    This also splits the currently "common" definition of
    plat_get_ns_image_entrypoint() to be separate between RPi3 and RPi4.
    
    Change-Id: I6f26c0adc6fce2df47786b271c490928b4529abb
    Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
    448fb352
rpi3_bl31_setup.c 6.45 KB