]>
git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/Include/Library/ArmPlatformSecLib.h
477fd7d99f0edf56f0e468009ac344c409d48583
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_
19 Initialize the memory where the initial stacks will reside
21 This memory can contain the initial stacks (Secure and Secure Monitor stacks).
22 In some platform, this region is already initialized and the implementation of this function can
23 do nothing. This memory can also represent the Secure RAM.
24 This function is called before the satck has been set up. Its implementation must ensure the stack
25 pointer is not used (probably required to use assembly language)
29 ArmPlatformSecBootMemoryInit (
34 Call at the beginning of the platform boot up
36 This function allows the firmware platform to do extra actions at the early
37 stage of the platform power up.
39 Note: This function must be implemented in assembler as there is no stack set up yet
43 ArmPlatformSecBootAction (
48 Initialize controllers that must setup at the early stage
50 Some peripherals must be initialized in Secure World.
51 For example: Some L2 controller, interconnect, clock, DMC, etc
55 ArmPlatformSecInitialize (
60 Call before jumping to Normal World
62 This function allows the firmware platform to do extra actions before
63 jumping to the Normal World
67 ArmPlatformSecExtraAction (
69 OUT UINTN
* JumpAddress
73 Initialize the Secure peripherals and memory regions
75 If Trustzone is supported by your platform then this function makes the required initialization
76 of the secure peripherals and memory regions.
80 ArmPlatformSecTrustzoneInit (