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.

Virtual Memory System <strong>Architecture</strong> (VMSA)<br />

The format of the VBAR is:<br />

31 5 4 0<br />

Vector_Base_Address (0) (0) (0) (0) (0)<br />

The Secure copy of the VBAR holds the vector base address for the Secure state, described as the Secure<br />

exception base address<br />

The Non-secure copy of the VBAR holds the vector base address for the Non-secure state, described as the<br />

Non-secure exception base address.<br />

Vector_Base_Address, bits [31:5]<br />

Bits [31:5] of the base address of the normal exception vectors. Bits [4:0] of an exception<br />

vector is the exception offset, see Table B1-3 on page B1-31.<br />

Bits [4:0] Reserved, UNK/SBZP.<br />

For details of how the VBAR registers are used to determine the exception addresses see Exception vectors<br />

<strong>and</strong> the exception base address on page B1-30.<br />

Accessing the VBAR<br />

To access the VBAR you read or write the CP15 registers with set to 0, set to c12, set to<br />

c0, <strong>and</strong> set to 0. For example:<br />

MRC p15,0,,c12,c0,0 ; Read CP15 Vector Base Address Register<br />

MCR p15,0,,c12,c0,0 ; Write CP15 Vector Base Address Register<br />

B3.12.41 c12, Monitor Vector Base Address Register (MVBAR)<br />

The Monitor Vector Base Address Register, MVBAR, provides the exception base address for all exceptions<br />

that are h<strong>and</strong>led in Monitor mode, see Exception vectors <strong>and</strong> the exception base address on page B1-30.<br />

The MVBAR is:<br />

present only when the Security Extensions are implemented<br />

a 32-bit read/write register<br />

accessible in Secure privileged modes only<br />

a Restricted access register, meaning it exists only in the Secure state.<br />

The format of the MVBAR is:<br />

31 5 4 0<br />

Monitor_Vector_Base_Address (0) (0) (0) (0) (0)<br />

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

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

Saved successfully!

Ooh no, something went wrong!