]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNullSec.c
11183e9393dc65dc75dcac2c1d0549fb0fb5445e
[mirror_edk2.git] / ArmPlatformPkg / Library / ArmPlatformLibNull / ArmPlatformLibNullSec.c
1 /** @file
2 *
3 * Copyright (c) 2011, ARM Limited. All rights reserved.
4 *
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
9 *
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.
12 *
13 **/
14
15 #include <Library/ArmPlatformLib.h>
16 #include <Library/DebugLib.h>
17 #include <Library/PcdLib.h>
18
19 /**
20 Initialize the Secure peripherals and memory regions
21
22 If Trustzone is supported by your platform then this function makes the required initialization
23 of the secure peripherals and memory regions.
24
25 **/
26 VOID
27 ArmPlatformTrustzoneInit (
28 VOID
29 )
30 {
31 ASSERT(FALSE);
32 }
33
34 /**
35 Initialize controllers that must setup at the early stage
36
37 Some peripherals must be initialized in Secure World.
38 For example, some L2x0 requires to be initialized in Secure World
39
40 **/
41 VOID
42 ArmPlatformSecInitialize (
43 VOID
44 )
45 {
46 // Do nothing yet
47 }
48
49 /**
50 Call before jumping to Normal World
51
52 This function allows the firmware platform to do extra actions before
53 jumping to the Normal World
54
55 **/
56 VOID
57 ArmPlatformSecExtraAction (
58 IN UINTN MpId,
59 OUT UINTN* JumpAddress
60 )
61 {
62 *JumpAddress = PcdGet32(PcdFvBaseAddress);
63 }