• Achin Gupta's avatar
    Add helper library for cpu context management · 9ac63c59
    Achin Gupta authored
    This patch introduces functions for saving and restoring shared system
    registers between secure and non-secure EL1 exception levels, VFP
    registers and essential EL3 system register and other state. It also
    defines the 'cpu_context' data structure which will used for saving and
    restoring execution context for a given security state. These functions
    will allow runtime services like PSCI and Secure payload dispatcher to
    implement logic for switching between the secure and non-secure states.
    
    The save and restore functions follow AArch64 PCS and only use
    caller-saved temporary registers.
    
    Change-Id: I8ee3aaa061d3caaedb28ae2c5becb9a206b6fd74
    9ac63c59
bl31.mk 2.44 KB