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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Debug Register Interfaces<br />

The subsequent accesses to the DBGOSSRR must be either all reads or all writes. UNPREDICTABLE behavior<br />

results if:<br />

reads <strong>and</strong> writes are mixed<br />

more accesses are performed than the number of registers to be saved or restored, as returned by the<br />

first read in the OS Save sequence.<br />

the subsequent accesses are writes, but the OS Lock is cleared with fewer writes performed than the<br />

number of registers to be restored.<br />

The debug logic state of the processor is unchanged if the OS Lock is cleared during or following an OS<br />

Save sequence. The sequence is restarted the next time the OS Lock is set.<br />

When the core power domain is powered down or when the OS Lock is not locked, reads of DBGOSSRR<br />

return an UNKNOWN value <strong>and</strong> writes are UNPREDICTABLE.<br />

See Example OS Save <strong>and</strong> Restore sequences on page C6-12 for software examples of the OS Save <strong>and</strong><br />

Restore processes.<br />

The debug logic state preserved by the OS Save <strong>and</strong> Restore mechanism<br />

If debug over power-down is supported, the OS Save <strong>and</strong> Restore mechanism permits the following debug<br />

logic state to be preserved:<br />

The registers that must be in the debug power domain, see Power domains <strong>and</strong> debug on page C6-5.<br />

The DBGWFAR.<br />

The DBGBVRs, DBGBCRs, DBGWVRs, DBGWCRs, <strong>and</strong> DBGVCR.<br />

The DBGDSCCR <strong>and</strong> DBGDSMCR.<br />

The data transfer registers DBGDTRTX <strong>and</strong> DBGDTRRX, subject to the values of<br />

DBGDSCR.TXfull <strong>and</strong> DBGDSCR.RXfull when the OS Save sequence is performed:<br />

— If DBGDSCR.TXfull is set to 1 then the value of DBGDTRTX is guaranteed to be saved <strong>and</strong><br />

restored.<br />

— If DBGDSCR.RXfull is set to 1 then the value of DBGDTRRX is guaranteed to be saved <strong>and</strong><br />

restored.<br />

— If either of these flags is not set to 1 when the OS Save sequence is performed then the value<br />

of the corresponding register is UNKNOWN after the OS Restore sequence.<br />

Note<br />

The OS Save <strong>and</strong> Restore sequences must not stall reading the values of DBGDTRTX <strong>and</strong><br />

DBGDTRRX, <strong>and</strong> must not cause any instructions to be issued, regardless of the settings of the<br />

DBGDSCR.ExtDCCmode access mode bits.<br />

C6-10 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!