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 Registers <strong>Reference</strong><br />

The format of the DBGOSSRR is:<br />

31 0<br />

OS Save or Restore value<br />

OS Save or Restore value, bits [31:0]<br />

After a write to the DBGOSLAR to lock the debug registers, the first access to the<br />

DBGOSSRR must be a read:<br />

when performing an OS Save sequence this read returns the number of reads from to<br />

the DBGOSSRR that are needed to save the entire debug logic state<br />

when performing an OS Restore sequence the value of this read is UNKNOWN <strong>and</strong><br />

must be discarded.<br />

After that first read access:<br />

a read of this register returns the next debug logic state value to be saved<br />

a write to this register restores the next debug logic state value.<br />

Before accessing the DBGOSSRR, you must write to the DBGOSLAR to set the OS Lock, see OS Lock<br />

Access Register (DBGOSLAR) on page C10-75. This write to the DBGOSLAR resets the internal counter<br />

for the OS Save or Restore operation.<br />

The result is UNPREDICTABLE if:<br />

you access the DBGOSSRR when the OS Lock is not set<br />

after setting the OS Lock, the first access to the DBGOSSRR is not a read.<br />

See The OS Save <strong>and</strong> Restore mechanism on page C6-8 for a description of using the OS Save <strong>and</strong> Restore<br />

mechanism registers.<br />

C10.6.4 Event Catch Register (DBGECR)<br />

The Event Catch Register, DBGECR, configures the debug logic to generate a debug event when the OS<br />

Lock is unlocked.<br />

The DBGECR is:<br />

debug register 9, at offset 0x024<br />

a read/write register<br />

only defined in v7 Debug<br />

when the Security Extensions are implemented, a Common register.<br />

In v6 Debug <strong>and</strong> v6.1 Debug, register 9 is not defined.<br />

C10-78 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!