3 Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
4 portions copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR>
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 #include <Library/ArmLib.h>
19 #include <Library/DebugLib.h>
20 #include <Library/PcdLib.h>
22 #include "ArmLibPrivate.h"
27 OUT ARM_CACHE_INFO
*CacheInfo
30 if (CacheInfo
!= NULL
) {
31 CacheInfo
->Type
= ArmCacheType();
32 CacheInfo
->Architecture
= ArmCacheArchitecture();
33 CacheInfo
->DataCachePresent
= ArmDataCachePresent();
34 CacheInfo
->DataCacheSize
= ArmDataCacheSize();
35 CacheInfo
->DataCacheAssociativity
= ArmDataCacheAssociativity();
36 CacheInfo
->DataCacheLineLength
= ArmDataCacheLineLength();
37 CacheInfo
->InstructionCachePresent
= ArmInstructionCachePresent();
38 CacheInfo
->InstructionCacheSize
= ArmInstructionCacheSize();
39 CacheInfo
->InstructionCacheAssociativity
= ArmInstructionCacheAssociativity();
40 CacheInfo
->InstructionCacheLineLength
= ArmInstructionCacheLineLength();
50 UINT32 val
= ArmReadAuxCr();