• Soby Mathew's avatar
    Fix the Cortex-A57 reset handler register usage · 683f788f
    Soby Mathew authored
    The CPU specific reset handlers no longer have the freedom
    of using any general purpose register because it is being invoked
    by the BL3-1 entry point in addition to BL1. The Cortex-A57 CPU
    specific reset handler was overwriting x20 register which was being
    used by the BL3-1 entry point to save the entry point information.
    This patch fixes this bug by reworking the register allocation in the
    Cortex-A57 reset handler to avoid using x20. The patch also
    explicitly mentions the register clobber list for each of the
    callee functions invoked by the reset handler
    
    Change-Id: I28fcff8e742aeed883eaec8f6c4ee2bd3fce30df
    683f788f
cortex_a57.S 8.45 KB