summaryrefslogtreecommitdiff
path: root/ArmPlatformPkg/Sec/Arm
diff options
context:
space:
mode:
authorOlivier Martin <olivier.martin@arm.com>2013-08-06 10:59:19 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2013-08-06 10:59:19 +0000
commitd6dc67ba1b592b08ef1c0ff2e327d8c4d33aea55 (patch)
tree0a3b0e886334372c8864b53fa789f084a11556d8 /ArmPlatformPkg/Sec/Arm
parent3cc033c51f62983cb13901bfd24a74f7aa241a24 (diff)
downloadedk2-d6dc67ba1b592b08ef1c0ff2e327d8c4d33aea55.zip
edk2-d6dc67ba1b592b08ef1c0ff2e327d8c4d33aea55.tar.gz
edk2-d6dc67ba1b592b08ef1c0ff2e327d8c4d33aea55.tar.bz2
ARM: Remove NSACR from the common code
NSACR (Non-Secure Access Control Register) is AArch32 specific. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14522 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg/Sec/Arm')
-rw-r--r--ArmPlatformPkg/Sec/Arm/Arch.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/ArmPlatformPkg/Sec/Arm/Arch.c b/ArmPlatformPkg/Sec/Arm/Arch.c
new file mode 100644
index 0000000..85df081
--- /dev/null
+++ b/ArmPlatformPkg/Sec/Arm/Arch.c
@@ -0,0 +1,25 @@
+/** @file
+*
+* Copyright (c) 2013, ARM Limited. All rights reserved.
+*
+* 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
+*
+* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+*
+**/
+
+#include <Chipset/ArmV7.h>
+
+VOID
+EFIAPI
+ArmSecArchTrustzoneInit (
+ VOID
+ )
+{
+ // Write to CP15 Non-secure Access Control Register
+ ArmWriteNsacr (PcdGet32 (PcdArmNsacr));
+}