• Andrew Thoelke's avatar
    Fix integer extension in mpidr_set_aff_inst() · 9b89613e
    Andrew Thoelke authored
    mpidr_set_aff_inst() is left shifting an int constant and an
    unsigned char value to construct an MPIDR. For affinity level 3 a
    shift of 32 would result in shifting out of the 32-bit type and
    have no effect on the MPIDR.
    
    These values need to be extended to unsigned long before shifting
    to ensure correct results for affinity level 3.
    
    Change-Id: I1ef40afea535f14cfd820c347a065a228e8f4536
    9b89613e
psci_common.c 21.2 KB