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.

}<br />

// Step 1. Update the CPSR value<br />

WriteCPSR(state->cpsr);<br />

// Step 2. Restore any registers corrupted by debug state. The function<br />

// WriteAllRegisters restores all general-purpose registers for all<br />

// processor modes apart from R0.<br />

WriteAllRegisters(state);<br />

// Step 3. Write the return address.<br />

WritePC(state->pc);<br />

// Step 4. Writing the PC corrupts R0 therefore, restore R0 now.<br />

WriteRegister(0, state->r0);<br />

// Step 5. Write the restart request bit in the DRCR.<br />

WriteDebugRegister(36, 1

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

Saved successfully!

Ooh no, something went wrong!