X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=ArmPkg%2FDrivers%2FCpuDxe%2FCpuDxe.h;h=075f2a18bf11471fc1e4e0dc1c5370d50230e382;hp=8a71075c65bdf28f9ed684f1a5ab3bbd9898e8b7;hb=25402f5d0660acde3ee382a36b065945251990dc;hpb=f659880bfa42ded20a00d3e371c998b42dcdd0fd diff --git a/ArmPkg/Drivers/CpuDxe/CpuDxe.h b/ArmPkg/Drivers/CpuDxe/CpuDxe.h index 8a71075c65..075f2a18bf 100644 --- a/ArmPkg/Drivers/CpuDxe/CpuDxe.h +++ b/ArmPkg/Drivers/CpuDxe/CpuDxe.h @@ -1,8 +1,9 @@ /** @file - Copyright (c) 2008-2009 Apple Inc. All rights reserved.
+ Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
+ Copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.
- All rights reserved. This program and the accompanying materials + This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -27,6 +28,8 @@ #include #include #include +#include +#include #include #include @@ -109,8 +112,8 @@ CpuSetMemoryAttributes ( EFI_STATUS InitializeExceptions ( - IN EFI_CPU_ARCH_PROTOCOL *Cpu - ); + IN EFI_CPU_ARCH_PROTOCOL *Cpu + ); EFI_STATUS SyncCacheConfig ( @@ -122,6 +125,44 @@ ConvertSectionToPages ( IN EFI_PHYSICAL_ADDRESS BaseAddress ); +/** + * Publish ARM Processor Data table in UEFI SYSTEM Table. + * @param HobStart Pointer to the beginning of the HOB List from PEI. + * + * Description : This function iterates through HOB list and finds ARM processor Table Entry HOB. + * If the ARM processor Table Entry HOB is found, the HOB data is copied to run-time memory + * and a pointer is assigned to it in ARM processor table. Then the ARM processor table is + * installed in EFI configuration table. +**/ +VOID +EFIAPI +PublishArmProcessorTable( + VOID + ); + +EFI_STATUS +SetMemoryAttributes ( + IN EFI_PHYSICAL_ADDRESS BaseAddress, + IN UINT64 Length, + IN UINT64 Attributes, + IN EFI_PHYSICAL_ADDRESS VirtualMask + ); + +VOID +GetRootTranslationTableInfo ( + IN UINTN T0SZ, + OUT UINTN *TableLevel, + OUT UINTN *TableEntryCount + ); + +EFI_STATUS +SetGcdMemorySpaceAttributes ( + IN EFI_GCD_MEMORY_SPACE_DESCRIPTOR *MemorySpaceMap, + IN UINTN NumberOfDescriptors, + IN EFI_PHYSICAL_ADDRESS BaseAddress, + IN UINT64 Length, + IN UINT64 Attributes + ); extern VIRTUAL_UNCACHED_PAGES_PROTOCOL gVirtualUncachedPages;