05.02.2013 Views

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Protected Memory System <strong>Architecture</strong> (PMSA)<br />

nU, bit [0] Not Unified MPU. Indicates whether the MPU implements a unified memory map:<br />

nU == 0 Unified memory map. Bits [23:16] of the register are zero.<br />

nU == 1 Separate Instruction <strong>and</strong> Data memory maps.<br />

Accessing the MPUIR<br />

To access the MPUIR you read the CP15 registers with set to 0, set to c0, set to c0, <strong>and</strong><br />

set to 4. For example:<br />

MRC p15,0,,c0,c0,4 ; Read CP15 MPU Type Register<br />

B4.6.10 c0, Multiprocessor Affinity Register (MPIDR)<br />

The Multiprocessor Affinity Register, MPIDR, provides an additional processor identification mechanism<br />

for scheduling purposes in a multiprocessor system. In a uniprocessor system <strong>ARM</strong> recommends that this<br />

register returns a value of 0.<br />

The MPIDR is:<br />

a 32-bit read-only register<br />

accessible only in privileged modes<br />

introduced in <strong>ARM</strong>v7.<br />

The format of the MPIDR is:<br />

31 24 23 16 15 8 7 0<br />

0 0 0 0 0 0 0 0 Affinity level 2 Affinity level 1 Affinity level 0<br />

Note<br />

In the MIDR bit definitions, a processor in the system can be a physical processor or a virtual processor.<br />

Bits [31:24] Reserved, RAZ.<br />

Affinity level 2, bits [23:16]<br />

The least significant affinity level field, for this processor in the system.<br />

Affinity level 1, bits [15:8]<br />

The intermediate affinity level field, for this processor in the system.<br />

Affinity level 0, bits [7:0]<br />

The most significant level field, for this processor in the system.<br />

In the system as a whole, for each of the affinity level fields, the assigned values must start at 0 <strong>and</strong> increase<br />

monotonically.<br />

<strong>ARM</strong> DDI 0406B Copyright © 1996-1998, 2000, 2004-2008 <strong>ARM</strong> Limited. All rights reserved. B4-37

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!