]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BeagleBoardPkg/PrePi/Arm/ArchPrePi.c
BeagleBoardPkg: create private PrePi implementation
[mirror_edk2.git] / BeagleBoardPkg / PrePi / Arm / ArchPrePi.c
diff --git a/BeagleBoardPkg/PrePi/Arm/ArchPrePi.c b/BeagleBoardPkg/PrePi/Arm/ArchPrePi.c
new file mode 100644 (file)
index 0000000..075eb89
--- /dev/null
@@ -0,0 +1,29 @@
+/** @file\r
+*\r
+*  Copyright (c) 2011 - 2013, ARM Limited. All rights reserved.\r
+*\r
+*  This program and the accompanying materials\r
+*  are licensed and made available under the terms and conditions of the BSD License\r
+*  which accompanies this distribution.  The full text of the license may be found at\r
+*  http://opensource.org/licenses/bsd-license.php\r
+*\r
+*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+*\r
+**/\r
+\r
+#include "PrePi.h"\r
+\r
+VOID\r
+ArchInitialize (\r
+  VOID\r
+  )\r
+{\r
+  // Enable program flow prediction, if supported.\r
+  ArmEnableBranchPrediction ();\r
+\r
+  if (FixedPcdGet32 (PcdVFPEnabled)) {\r
+    ArmEnableVFP ();\r
+  }\r
+}\r
+\r