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 DBGOSLAR is:<br />

31 0<br />

OS Lock Access<br />

OS Lock Access, bits [31:0]<br />

Writing the key value 0xC5ACCE55 to this field locks the debug registers, <strong>and</strong> resets the<br />

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

Writing any other value to this register unlocks the debug registers if they are locked.<br />

For details of error responses when accessing the debug registers, see Access permissions on page C6-26.<br />

If bit [0] of the Event Catch Register is set to 1 at the point when the OS Lock is unlocked, an OS Unlock<br />

Catch debug event is generated, see Event Catch Register (DBGECR) on page C10-78.<br />

C10.6.2 OS Lock Status Register (DBGOSLSR)<br />

The OS Lock Status Register, DBGOSLSR, provides status information for the OS Lock.<br />

The DBGOSLSR is:<br />

debug register 193, at offset 0x304<br />

a read-only register<br />

only defined in v7 Debug<br />

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

Note<br />

In any v7 Debug implementation you can read the DBGOSLSR to detect whether the OS Save <strong>and</strong> Restore<br />

mechanism is implemented. If it is not implemented the read of the DBGOSLSR returns zero.<br />

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

The format of the DBGOSLSR is:<br />

31 3<br />

2 1<br />

Reserved, UNK<br />

Bits [31:3] Reserved, UNK.<br />

32-bit access, bit [2]<br />

32-bit access<br />

Locked<br />

Lock implemented<br />

This bit is always RAZ. It indicates that a 32-bit access is needed to write the key to the OS<br />

Lock Access Register.<br />

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

0

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

Saved successfully!

Ooh no, something went wrong!