| |||
| Home > System Control > Register descriptions > Secure Configuration Register | |||
The SCR characteristics are:
Defines the configuration of the current security state. It specifies:
the security state of the processor, Secure or Non-secure
what mode the processor branches to, if an IRQ, FIQ or external abort occurs
whether the CPSR.F and CPSR.A bits can be modified when SCR.NS is 1.
The SCR is:
a read/write register
a Restricted access register that exists only in the Secure state
only accessible in Secure PL1 modes.
Available in all configurations.
See the register summary in Table 4.3.
Figure 4.26 shows the SCR bit assignments.
Table 4.55 shows the SCR bit assignments.
Table 4.55. SCR bit assignments
| Bits | Name | Function |
|---|---|---|
| [31:10] | - | Reserved, UNK/SBZP. |
| [9] | SIF | Secure Instruction Fetch. When the processor is in Secure state, this bit disables instruction fetches from Non-secure memory:
|
| [8] | HCE | Hyp Call enable. This bit enables the
use of
|
| [7] | SCD | Secure Monitor Call disable. This bit
causes the
A
trap of the |
| [6] | nET | Not Early Termination. This bit disables early termination of data operations. This bit is not implemented, UNK/SBZP. |
| [5] | AW | A bit writable. This bit controls whether CPSR.A can be modified in Non-secure state. For the Cortex-A15 MPCore processor:
|
| [4] | FW | F bit writable. This bit controls whether CPSR.F can be modified in Non-secure state. For the Cortex-A15 MPCore processor:
|
| [3] | EA | External Abort handler. This bit controls which mode takes external aborts:
|
| [2] | FIQ | FIQ handler. This bit controls which mode takes FIQ exceptions:
|
| [1] | IRQ | IRQ handler. This bit controls which mode takes IRQ exceptions:
|
| [0] | NS | Non Secure bit. Except when the processor is in Monitor mode, this bit determines the security state of the processor:
NoteWhen the processor is in Monitor mode, it is always in Secure state, regardless of the value of the NS bit. The value of the NS bit also affects the accessibility of the Banked CP15 registers in Monitor mode. See the ARM Architecture Reference Manual for more information on the NS bit. |
To access the SCR, read or write the CP15 register with:
MRC p15, 0, <Rt>, c1, c1, 0; Read Secure Configuration Register data
MCR p15, 0, <Rt>, c1, c1, 0; Write Secure Configuration Register data