ArmPkg/ArmLib: Added helper functions for accessing CPU ACTLR
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15396 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
committed by
oliviermartin
parent
b7dd4dbd26
commit
52d44f77c2
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
||||
Copyright (c) 2011 - 2012, ARM Ltd. All rights reserved.<BR>
|
||||
Copyright (c) 2011 - 2014, ARM Ltd. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -62,3 +62,31 @@ ArmUnsetAuxCrBit (
|
||||
val &= ~Bits;
|
||||
ArmWriteAuxCr(val);
|
||||
}
|
||||
|
||||
//
|
||||
// Helper functions for accessing CPUACTLR
|
||||
//
|
||||
|
||||
VOID
|
||||
EFIAPI
|
||||
ArmSetCpuActlrBit (
|
||||
IN UINTN Bits
|
||||
)
|
||||
{
|
||||
UINTN Value;
|
||||
Value = ArmReadCpuActlr ();
|
||||
Value |= Bits;
|
||||
ArmWriteCpuActlr (Value);
|
||||
}
|
||||
|
||||
VOID
|
||||
EFIAPI
|
||||
ArmUnsetCpuActlrBit (
|
||||
IN UINTN Bits
|
||||
)
|
||||
{
|
||||
UINTN Value;
|
||||
Value = ArmReadCpuActlr ();
|
||||
Value &= ~Bits;
|
||||
ArmWriteCpuActlr (Value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user