]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/Library/ArmPlatformSecLibNull/ArmPlatformLibNullSec.c
Check the input VaraibleName for db/dbx when appending variables with formatted as...
[mirror_edk2.git] / ArmPlatformPkg / Library / ArmPlatformSecLibNull / ArmPlatformLibNullSec.c
CommitLineData
12fcdcb8 1/** @file
2*
e314d564 3* Copyright (c) 2011-2012, ARM Limited. All rights reserved.
12fcdcb8 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**/
26VOID
e314d564 27ArmPlatformSecTrustzoneInit (
5e773144 28 IN UINTN MpId
12fcdcb8 29 )
30{
5e773144 31 // Secondary cores might have to set the Secure SGIs into the GICD_IGROUPR0
32 if (!IS_PRIMARY_CORE(MpId)) {
33 return;
34 }
35
12fcdcb8 36 ASSERT(FALSE);
37}
38
39/**
40 Initialize controllers that must setup at the early stage
41
42 Some peripherals must be initialized in Secure World.
43 For example, some L2x0 requires to be initialized in Secure World
44
45**/
e314d564 46RETURN_STATUS
12fcdcb8 47ArmPlatformSecInitialize (
e314d564 48 IN UINTN MpId
12fcdcb8 49 )
50{
e314d564 51 // If it is not the primary core then there is nothing to do
52 if (!IS_PRIMARY_CORE(MpId)) {
53 return RETURN_SUCCESS;
54 }
55
12fcdcb8 56 // Do nothing yet
e314d564 57 return RETURN_SUCCESS;
12fcdcb8 58}
59
60/**
61 Call before jumping to Normal World
62
63 This function allows the firmware platform to do extra actions before
64 jumping to the Normal World
65
66**/
67VOID
68ArmPlatformSecExtraAction (
69 IN UINTN MpId,
70 OUT UINTN* JumpAddress
71 )
72{
73 *JumpAddress = PcdGet32(PcdFvBaseAddress);
74}