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 />

C10.8.5 Lock Access Register (DBGLAR)<br />

The Lock Access Register, DBGLAR, provides a lock on writes to the debug registers through the<br />

memory-mapped interface. Use of this lock mechanism reduces the risk of accidental damage to the<br />

contents of the debug registers. It does not, <strong>and</strong> cannot, prevent all accidental or malicious damage.<br />

You must use the DBGLSR to check the current status of the lock, see Lock Status Register (DBGLSR) on<br />

page C10-95.<br />

The DBGLAR is:<br />

debug register 1004, at offset 0xFB0<br />

a write-only register<br />

only defined in the memory-mapped interface<br />

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

Note<br />

Debug register 1004, at offset 0xFB0, is reserved in both the Extended CP14 interface <strong>and</strong> the external<br />

debug interface.<br />

Do not confuse the Software Lock mechanism with the OS Lock described in The OS Save <strong>and</strong><br />

Restore mechanism on page C6-8.<br />

The format of the DBGLAR is:<br />

31 0<br />

Lock Access control<br />

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

Writing the key value 0xC5ACCE55 to this field clears the lock, enabling write accesses to the<br />

debug registers through the memory-mapped interface.<br />

Writing any other value to this register sets the lock, disabling write accesses to the debug<br />

registers through the memory-mapped interface.<br />

Note<br />

In implementations with separate core <strong>and</strong> debug power-domains, this lock is maintained in the debug<br />

power domain. Its state is unaffected by the core power domain powering down.<br />

This lock is set on debug logic reset, that is, on a PRESETDBGn or nSYSPORESET reset.<br />

Accesses through the memory-mapped interface to locked debug registers are ignored. For more<br />

information, see Permissions in relation to locks on page C6-27.<br />

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