ArmPkg/ArmLib: Functions to access ARM HYP Vector base address register.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14189 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
oliviermartin
2013-03-12 00:59:46 +00:00
parent 8fa3caf2bc
commit 5ea2c2d334
3 changed files with 35 additions and 2 deletions

View File

@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
//
// Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
// Copyright (c) 2011-2012, ARM Limited. All rights reserved.
// Copyright (c) 2011-2013, ARM Limited. All rights reserved.
//
// This program and the accompanying materials
// are licensed and made available under the terms and conditions of the BSD License
@ -44,6 +44,8 @@
EXPORT ArmWriteScr
EXPORT ArmReadMVBar
EXPORT ArmWriteMVBar
EXPORT ArmReadHVBar
EXPORT ArmWriteHVBar
EXPORT ArmCallWFE
EXPORT ArmCallSEV
EXPORT ArmReadSctlr
@ -161,6 +163,14 @@ ArmWriteScr
mcr p15, 0, r0, c1, c1, 0
bx lr
ArmReadHVBar
mrc p15, 4, r0, c12, c0, 0
bx lr
ArmWriteHVBar
mcr p15, 4, r0, c12, c0, 0
bx lr
ArmReadMVBar
mrc p15, 0, r0, c12, c0, 1
bx lr