]> git.proxmox.com Git - mirror_edk2.git/blame - ArmVirtPkg/PrePi/AArch64/ArchPrePi.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / ArmVirtPkg / PrePi / AArch64 / ArchPrePi.c
CommitLineData
f9a9d2dc
AB
1/** @file\r
2*\r
3* Copyright (c) 2011-2013, ARM Limited. All rights reserved.\r
4*\r
9792fb0e 5* SPDX-License-Identifier: BSD-2-Clause-Patent\r
f9a9d2dc
AB
6*\r
7**/\r
8\r
9#include "PrePi.h"\r
10\r
11#include <Chipset/AArch64.h>\r
12\r
13VOID\r
14ArchInitialize (\r
15 VOID\r
16 )\r
17{\r
18 // Enable Floating Point\r
19 if (FixedPcdGet32 (PcdVFPEnabled)) {\r
20 ArmEnableVFP ();\r
21 }\r
22\r
23 if (ArmReadCurrentEL () == AARCH64_EL2) {\r
24 // Trap General Exceptions. All exceptions that would be routed to EL1 are routed to EL2\r
25 ArmWriteHcr (ARM_HCR_TGE);\r
26 }\r
27}\r