TianoCore EDK2 master
Loading...
Searching...
No Matches
PeilessSec.c File Reference
#include "PeilessSec.h"

Go to the source code of this file.

Macros

#define IS_XIP()
 

Functions

STATIC EFI_STATUS GetPlatformPpi (IN EFI_GUID *PpiGuid, OUT VOID **Ppi)
 
STATIC VOID SecMain (IN UINTN UefiMemoryBase, IN UINTN StackBase, IN UINT64 StartTimeStamp)
 
VOID CEntryPoint (IN UINTN UefiMemoryBase, IN UINTN StackBase)
 

Variables

UINT64 mSystemMemoryEnd
 

Detailed Description

Copyright (c) 2011-2017, ARM Limited. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file PeilessSec.c.

Macro Definition Documentation

◆ IS_XIP

#define IS_XIP ( )
Value:
(((UINT64)FixedPcdGet64 (PcdFdBaseAddress) > mSystemMemoryEnd) ||\
((FixedPcdGet64 (PcdFdBaseAddress) + FixedPcdGet32 (PcdFdSize)) <= FixedPcdGet64 (PcdSystemMemoryBase)))
#define FixedPcdGet32(TokenName)
Definition: PcdLib.h:92
#define FixedPcdGet64(TokenName)
Definition: PcdLib.h:106

Definition at line 11 of file PeilessSec.c.

Function Documentation

◆ CEntryPoint()

VOID CEntryPoint ( IN UINTN  UefiMemoryBase,
IN UINTN  StackBase 
)

C entrypoint into the SEC driver.

Parameters
[in]UefiMemoryBaseStart of the PI/UEFI memory region
[in]StackBaseStart of the stack

Definition at line 172 of file PeilessSec.c.

◆ GetPlatformPpi()

STATIC EFI_STATUS GetPlatformPpi ( IN EFI_GUID PpiGuid,
OUT VOID **  Ppi 
)

Obtain a PPI from the list of PPIs provided by the platform code.

Parameters
[in]PpiGuidGUID of the PPI to obtain
[out]PpiAddress of GUID pointer to return the PPI
Returns
Whether the PPI was obtained successfully

Definition at line 27 of file PeilessSec.c.

◆ SecMain()

STATIC VOID SecMain ( IN UINTN  UefiMemoryBase,
IN UINTN  StackBase,
IN UINT64  StartTimeStamp 
)

SEC main routine.

Parameters
[in]UefiMemoryBaseStart of the PI/UEFI memory region
[in]StackBaseStart of the stack
[in]StartTimeStampTimer value at start of execution

Definition at line 59 of file PeilessSec.c.

Variable Documentation

◆ mSystemMemoryEnd

UINT64 mSystemMemoryEnd
Initial value:
= FixedPcdGet64 (PcdSystemMemoryBase) +
FixedPcdGet64 (PcdSystemMemorySize) - 1

Definition at line 14 of file PeilessSec.c.