| |||
| Home > System Control Coprocessor > System control processor register descriptions > c11, DMA User Accessibility Register | |||
The purpose of the DMA User Accessibility Register is to determine if a User mode process can access the DMA registers for each channel.
The register holds a U bit for each channel, that indicates if the registers for that channel can be accessed by a User mode process.
The DMA User Accessibility Register is:
in CP15 c11
a 32-bit read/write register
accessible in privileged mode only.
Figure 3.52 shows the arrangement of bits in the register.
Table 3.111 shows the bit functions of the DMA User Accessibility Register.
Table 3.111. DMA User Accessibility Register bit functions
| Bit range | Field name | Function |
|---|---|---|
| [31:2] | - | UNP/SBZ |
| [1] | U1 | Indicates if a User mode process can access the registers for channel 1. 0 = User mode can not access channel 1 registers. This is the reset value. 1 = User mode can access channel 1 registers. |
| [0] | U0 | Indicates if a User mode process can access the registers for channel 0. 0 = User mode can not access channel 1 registers. This is the reset value. 1 = User mode can access channel 0 registers. |
The registers that can be accessed if the U bit for that channel is 1 are described in these sections:
The contents of these registers must be preserved on a task switch if the registers are User-accessible.
You can access the DMA channel Number Register in User mode when the U bit for any channel is 1. For more information see c11, DMA Channel Number Register.
If the U bit for a channel is set to 0, then attempting to access the registers for that channel from a User process results in an Undefined Instruction trap.
Table 3.112 shows the results of attempted accesses to the DMA User Accessibility Register for each mode.
Table 3.112. Results of accesses to the DMA User Accessibility Register
| Privileged read | Privileged write | User read or write |
|---|---|---|
| Data read | Data write | Undefined exception |
To access the DMA User Accessibility Register you read or write CP15 with:
Opcode_1 set to 0
CRn set to c0
CRm set to c0
Opcode_2 set to 0.
For example:
MRC p15, 0, <Rd>, c11, c1, 0 ; Read DMA User Accessibility Register
MCR p15, 0, <Rd>, c11, c1, 0 ; Write DMA User Accessibility Register