2.5.1.3.9 Exception Mask Registers
The exception mask registers disable the handling of exceptions by the processor. Disable exceptions where they might impact on timing critical tasks.
To access the exception mask registers use the MSR and MRS instructions, or the CPS instruction to change the value of PRIMASK or FAULTMASK. For more information, see 2.6.10.6 MRS, 2.6.10.7 MSR, and 2.6.10.2 CPS.
Priority Mask Register
The PRIMASK register prevents activation of all exceptions with configurable priority. For information about its attributes, see the register summary in Table 2-2. The following figure for bit assignments for MSR or MRS access.
![](GUID-2E0CC1DC-DA35-4FA8-98F4-DAAF84D107E6-low.png)
Bits | Name | Function |
---|---|---|
[31:1] | — | Reserved |
[0] | PRIMASK | 0: no effect 1: prevents the activation of all exceptions with configurable priority. |
Fault Mask Register
The FAULTMASK register prevents activation of all exceptions except for Non-Maskable Interrupt (NMI). For information about its attributes, see the register summary in Table 2-2.
The following table lists the big assignments for MSR or MRS access.
Bits | Name | Function |
---|---|---|
[31:1] | — | Reserved |
[0] | FAULTMASK | 0: no effect 1: prevents the activation of all exceptions except for NMI. |
The processor clears the FAULTMASK bit to 0 on exit from any exception handler except the NMI handler.
Base Priority Mask Register
The BASEPRI register defines the minimum priority for exception processing. When BASEPRI is set to a nonzero value, it prevents the activation of all exceptions with the same or lower priority level as the BASEPRI value. For information about its attributes, see the register summary in Table 2-2.
![](GUID-D9532615-3921-49CC-8005-831789E04F8F-low.png)
The following table lists the big assignments for MSR or MRS access.
Bits | Name | Function |
---|---|---|
[31:8] | — | Reserved |
[7:0] | BASEPRI1 | Priority mask bits: 0x00: no effect Nonzero: defines the base priority for exception processing. The processor does not process any exception with a priority value greater than or equal to BASEPRI. |