09.12.2012 Views

Cortex-A8 Technical Reference Manual - ARM Information Center

Cortex-A8 Technical Reference Manual - ARM Information Center

Cortex-A8 Technical Reference Manual - ARM Information Center

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.

Debug<br />

Example 12-27 Reading a coprocessor register<br />

uint32 ReadCPReg(int CPnum, int opc1, int CRn, int CRm, int opc2)<br />

{<br />

// Step 1. Save R0.<br />

saved_r0 := ReadRegister(0);<br />

// Step 2. Execute instruction MCR p15, 0, r0, c0, c1, 0 through the ITR.<br />

Execute<strong>ARM</strong>Instruction(0xEE000010 + (CPnum

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

Saved successfully!

Ooh no, something went wrong!