]>
git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/Include/Library/ArmPlatformSecLib.h
3 * Copyright (c) 2011-2012, ARM Limited. All rights reserved.
5 * This program and the accompanying materials
6 * are licensed and made available under the terms and conditions of the BSD License
7 * which accompanies this distribution. The full text of the license may be found at
8 * http://opensource.org/licenses/bsd-license.php
10 * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef _ARMPLATFORMSECLIB_H_
16 #define _ARMPLATFORMSECLIB_H_
18 #define ARM_SEC_BOOT_MASK ~0
19 #define ARM_SEC_COLD_BOOT (1 << 0)
20 #define ARM_SEC_SECONDARY_COLD_BOOT (1 << 1)
23 Initialize the memory where the initial stacks will reside
25 This memory can contain the initial stacks (Secure and Secure Monitor stacks).
26 In some platform, this region is already initialized and the implementation of this function can
27 do nothing. This memory can also represent the Secure RAM.
28 This function is called before the satck has been set up. Its implementation must ensure the stack
29 pointer is not used (probably required to use assembly language)
33 ArmPlatformSecBootMemoryInit (
38 Call at the beginning of the platform boot up
40 This function allows the firmware platform to do extra actions at the early
41 stage of the platform power up.
43 Note: This function must be implemented in assembler as there is no stack set up yet
47 ArmPlatformSecBootAction (
52 Initialize controllers that must setup at the early stage
54 Some peripherals must be initialized in Secure World.
55 For example: Some L2 controller, interconnect, clock, DMC, etc
59 ArmPlatformSecInitialize (
64 Call before jumping to Normal World
66 This function allows the firmware platform to do extra actions before
67 jumping to the Normal World
71 ArmPlatformSecExtraAction (
73 OUT UINTN
* JumpAddress
77 Initialize the Secure peripherals and memory regions
79 If Trustzone is supported by your platform then this function makes the required initialization
80 of the secure peripherals and memory regions.
84 ArmPlatformSecTrustzoneInit (