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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The formats of the ADFSR <strong>and</strong> AIFSR are IMPLEMENTATION DEFINED.<br />

Accessing the ADFSR <strong>and</strong> AIFSR<br />

Protected Memory System <strong>Architecture</strong> (PMSA)<br />

To access the ADFSR or AIFSR you read or write the CP15 registers with set to 0, set to c5,<br />

set to c1, <strong>and</strong> set to:<br />

0 for the ADFSR<br />

1 for the AIFSR.<br />

For example:<br />

MRC p15,0,,c5,c1,0 ; Read CP15 Auxiliary Data Fault Status Register<br />

MCR p15,0,,c5,c1,0 ; Write CP15 Auxiliary Data Fault Status Register<br />

MRC p15,0,,c5,c1,1 ; Read CP15 Auxiliary Instruction Fault Status Register<br />

MCR p15,0,,c5,c1,1 ; Write CP15 Auxiliary Instruction Fault Status Register<br />

B4.6.23 CP15 c6, Fault Address registers<br />

There are two Fault Address registers, in CP15 c6, as shown in Figure B4-7 on page B4-54. The two Fault<br />

Address registers complement the Fault Status registers, <strong>and</strong> are shown in Table B4-17.<br />

Register name Description<br />

Data Fault Address Register (DFAR) c6, Data Fault Address Register (DFAR)<br />

Note<br />

Before <strong>ARM</strong>v7:<br />

The DFAR was called the Fault Address Register (FAR).<br />

The Watchpoint Fault Address Register (DBGWFAR) was implemented in CP15 c6 with ==1.<br />

From <strong>ARM</strong>v7, the DBGWFAR is only implemented as a CP14 debug register, see Watchpoint Fault<br />

Address Register (DBGWFAR) on page C10-28.<br />

Fault information is returned using the fault address registers <strong>and</strong> the fault status registers described in CP15<br />

c5, Fault status registers on page B4-54. For details of how these registers are used see Fault Status <strong>and</strong><br />

Fault Address registers in a PMSA implementation on page B4-18.<br />

c6, Data Fault Address Register (DFAR)<br />

Table B4-17 Fault address registers<br />

Instruction Fault Address Register (IFAR) c6, Instruction Fault Address Register (IFAR) on page B4-58<br />

The Data Fault Address Register, DFAR, holds the faulting address that caused a synchronous Data Abort<br />

exception.<br />

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

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

Saved successfully!

Ooh no, something went wrong!