]>
git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Library/ArmLib/Arm11/Arm11Lib.c
3 Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
4 Copyright (c) 2011 - 2014, ARM Limited. All rights reserved.
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.
16 #include <Chipset/ARM1176JZ-S.h>
18 #include <Library/ArmLib.h>
19 #include <Library/DebugLib.h>
20 #include <Library/PcdLib.h>
28 ASSERT(FeaturePcdGet (PcdRelocateVectorTable
) == TRUE
);
30 if (VectorBase
== 0x0) {
32 } else if (VectorBase
== 0xFFFF0000) {
35 // Feature not supported by ARM11. The Vector Table is either at 0x0 or 0xFFFF0000
46 ASSERT((FeaturePcdGet (PcdRelocateVectorTable
) == TRUE
) && ((PcdGet32 (PcdCpuVectorBaseAddress
) == 0x0) || (PcdGet32 (PcdCpuVectorBaseAddress
) == 0xFFFF0000)));
47 return PcdGet32 (PcdCpuVectorBaseAddress
);