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.

ThumbEE H<strong>and</strong>ler Base Register (TEEHBR)<br />

Application Level Programmers’ Model<br />

The ThumbEE H<strong>and</strong>ler Base Register (TEEHBR) holds the base address for ThumbEE h<strong>and</strong>lers.<br />

The TEEHBR is:<br />

a CP14 register<br />

a 32-bit read/write register, with access rights that depend on the current privilege <strong>and</strong> the value of<br />

the TEECR.XED bit:<br />

— privileged accesses are always permitted<br />

— when TEECR.XED == 0, unprivileged accesses are permitted<br />

— when TEECR.XED == 1, the result of an unprivileged access is UNDEFINED.<br />

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

The format of the TEEHBR is:<br />

31 2 1 0<br />

H<strong>and</strong>lerBase SBZ<br />

H<strong>and</strong>lerBase, bits [31:2]<br />

The address of the ThumbEE H<strong>and</strong>ler_00 implementation. This is the address of the first of<br />

the ThumbEE h<strong>and</strong>lers.<br />

The reset value of this field is UNKNOWN.<br />

bits [1:0] Reserved, SBZ.<br />

The effects of a write to this register on ThumbEE h<strong>and</strong>ler entry are only guaranteed to be visible to<br />

subsequent instructions after the execution of an ISB instruction, an exception entry or an exception return.<br />

However, a read of this register always returns the value most recently written to the register.<br />

To access the TEEHBR, read or write the CP14 registers with an MRC or MCR instruction with set to 6,<br />

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

MRC p14, 6, , c1, c0, 0 ; Read ThumbEE H<strong>and</strong>ler Base Register<br />

MCR p14, 6, , c1, c0, 0 ; Write ThumbEE H<strong>and</strong>ler Base Register<br />

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

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

Saved successfully!

Ooh no, something went wrong!