diff options
author | Olivier Martin <olivier.martin@arm.com> | 2013-08-06 10:59:19 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2013-08-06 10:59:19 +0000 |
commit | d6dc67ba1b592b08ef1c0ff2e327d8c4d33aea55 (patch) | |
tree | 0a3b0e886334372c8864b53fa789f084a11556d8 /ArmPlatformPkg/Sec/Arm | |
parent | 3cc033c51f62983cb13901bfd24a74f7aa241a24 (diff) | |
download | edk2-d6dc67ba1b592b08ef1c0ff2e327d8c4d33aea55.tar.gz edk2-d6dc67ba1b592b08ef1c0ff2e327d8c4d33aea55.tar.bz2 edk2-d6dc67ba1b592b08ef1c0ff2e327d8c4d33aea55.zip |
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.c | 25 |
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 0000000000..85df0816ef --- /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));
+}
|