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 />

B4.6.34 c13, Context ID Register (CONTEXTIDR)<br />

The Context ID Register, CONTEXTIDR, identifies the current context by means of a Context Identifier<br />

(Context ID).<br />

Note<br />

Previously, on PMSA implementations, this Context ID has been described as a Process Identifier<br />

(PROCID), <strong>and</strong> this CP15 c13 register has been called the Process ID Register. The new naming makes the<br />

register naming consistent for PMSA <strong>and</strong> VMSA implementations.<br />

The whole of this register is used by:<br />

the debug logic, for Linked <strong>and</strong> Unlinked Context ID matching, see Breakpoint debug events on<br />

page C3-5 <strong>and</strong> Watchpoint debug events on page C3-15.<br />

the trace logic, to identify the current process.<br />

The CONTEXTIDR is:<br />

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

accessible only in privileged modes.<br />

The format of the CONTEXTIDR is:<br />

31 0<br />

ContextID<br />

ContextID, bits [31:0]<br />

Context Identifier. This field must be programmed with a unique context identifier value that<br />

identifies the current process. It is used by the trace logic <strong>and</strong> the debug logic to identify the<br />

process that is running currently.<br />

Accessing the CONTEXTIDR<br />

To access the CONTEXTIDR you read or write the CP15 registers with set to 0, set to c13,<br />

set to c0, <strong>and</strong> set to 1. For example:<br />

MRC p15,0,,c13,c0,1 ; Read CP15 Context ID Register<br />

MCR p15,0,,c13,c0,1 ; Write CP15 Context ID Register<br />

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

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

Saved successfully!

Ooh no, something went wrong!