22.214.171.124.1. Changing Register Sets
- If the processor is currently running in the normal register set, insert the new register set number in estatus.CRS, and execute eret.
- If the processor is currently running in a shadow register set, insert the new register set number in sstatus.CRS, and execute eret.
Before executing eret to change the register set, system software must set individual external interrupt masks correctly to ensure that registers in the shadow register set cannot be corrupted. If an interrupt is assigned to the register set, system software must ensure that one of the following conditions is true:
- The ISR is written to preserve register contents.
- The individual interrupt is disabled. The method for disabling an individual external interrupt is specific to the EIC implementation.
Did you find the information on this page useful?