summaryrefslogtreecommitdiff
path: root/ArmPlatformPkg/Sec/SecInternal.h
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-22 23:08:40 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-22 23:08:40 +0000
commit5b1928ffd6c03d171a06b89542d25ed01562c1eb (patch)
tree2df93f4e94b3f43adf985aec19cb6d05295c7255 /ArmPlatformPkg/Sec/SecInternal.h
parentc524ffbb6762dd7b98108638caa4a25eaf7fcf6b (diff)
downloadedk2-platforms-5b1928ffd6c03d171a06b89542d25ed01562c1eb.tar.xz
ArmPlatformPkg/Sec: Clean and Move all declaration into 'SecInternal.h' (2)
Missed header file. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12419 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg/Sec/SecInternal.h')
-rw-r--r--ArmPlatformPkg/Sec/SecInternal.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/ArmPlatformPkg/Sec/SecInternal.h b/ArmPlatformPkg/Sec/SecInternal.h
new file mode 100644
index 0000000000..a4685c1448
--- /dev/null
+++ b/ArmPlatformPkg/Sec/SecInternal.h
@@ -0,0 +1,65 @@
+/** @file
+* Main file supporting the SEC Phase on ARM PLatforms
+*
+* Copyright (c) 2011, 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.
+*
+**/
+
+#ifndef __SEC_H__
+#define __SEC_H__
+
+#include <Base.h>
+#include <Library/BaseLib.h>
+#include <Library/DebugLib.h>
+
+#include <Chipset/ArmV7.h>
+
+#define IS_ALIGNED(Address, Align) (((UINTN)Address & (Align-1)) == 0)
+
+VOID
+ArmSetupGicNonSecure (
+ IN INTN GicDistributorBase,
+ IN INTN GicInterruptInterfaceBase
+);
+
+// Vector Table for Sec Phase
+VOID
+SecVectorTable (
+ VOID
+ );
+
+VOID
+NonSecureWaitForFirmware (
+ VOID
+ );
+
+VOID
+enter_monitor_mode (
+ IN VOID* Stack
+ );
+
+VOID
+return_from_exception (
+ IN UINTN NonSecureBase
+ );
+
+VOID
+copy_cpsr_into_spsr (
+ VOID
+ );
+
+VOID
+SecCommonExceptionEntry (
+ IN UINT32 Entry,
+ IN UINT32 LR
+ );
+
+#endif