• Manish V Badarkhe's avatar
    runtime_exceptions: Update AT speculative workaround · 3b8456bd
    Manish V Badarkhe authored
    As per latest mailing communication [1], we decided to
    update AT speculative workaround implementation in order to
    disable page table walk for lower ELs(EL1 or EL0) immediately
    after context switching to EL3 from lower ELs.
    
    Previous implementation of AT speculative workaround is available
    here: 45aecff0
    
    AT speculative workaround is updated as below:
    1. Avoid saving and restoring of SCTLR and TCR registers for EL1
       in context save and restore routine respectively.
    2. On EL3 entry, save SCTLR and TCR registers for EL1.
    3. On EL3 entry, update EL1 system registers to disable stage 1
       page table walk for lower ELs (EL1 and EL0) and enable EL1
       MMU.
    4. On EL3 exit, restore SCTLR and TCR registers for EL1 which
       are saved in step 2.
    
    [1]:
    https://lists.trustedfirmware.org/pipermail/tf-a/2020-July/000586.html
    
    
    
    Change-Id: Iee8de16f81dc970a8f492726f2ddd57e7bd9ffb5
    Signed-off-by: default avatarManish V Badarkhe <Manish.Badarkhe@arm.com>
    3b8456bd
el3_common_macros.S 17.5 KB