4.3. Overlapping regions

You can program the protection unit with two or more overlapping regions. When overlapping regions are programmed, a fixed priority scheme is applied to determine the overlapping region attribute that is applied to the memory access (attributes for region 7 take highest priority, those for region 0 take lowest priority). For example:

Region 2

Is programmed to be 4KB in size, starting from address 0x3000 with DApn[3:0] set to b0010. (Privileged mode full access, User mode read only.)

Region 1

Is programmed to be 16KB in size, starting from address 0x0000 with DApn[3:0] set to b0001. (Privileged mode access only.)

When the processor performs a data write to address 0x3010 while in User mode, the address falls into both region 1 and region 2, as shown in Figure 4.2. Because there is a clash, the attributes associated with region 2 are applied. Because you are only enabled to perform reads from this region, a Data Abort occurs.

Figure 4.2. Overlapping memory regions

Copyright © 2001-2003, 2007 ARM Limited. All rights reserved.ARM DDI 0201D
Non-Confidential