TianoCore EDK2 master
|
#include "ScriptExecute.h"
Go to the source code of this file.
Functions | |
EFI_STATUS EFIAPI | S3BootScriptExecutorEntryFunction (IN ACPI_S3_CONTEXT *AcpiS3Context, IN PEI_S3_RESUME_STATE *PeiS3ResumeState) |
VOID | RegisterMemoryProfileImage (IN EFI_GUID *FileName, IN PHYSICAL_ADDRESS ImageBase, IN UINT64 ImageSize, IN EFI_FV_FILETYPE FileType) |
VOID EFIAPI | ReadyToLockEventNotify (IN EFI_EVENT Event, IN VOID *Context) |
EFI_STATUS EFIAPI | BootScriptExecutorEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Variables | |
EFI_GUID | mBootScriptExecutorImageGuid |
BOOLEAN | mPage1GSupport = FALSE |
UINT64 | mAddressEncMask = 0 |
This is the code for Boot Script Executer module.
This driver is dispatched by Dxe core and the driver will reload itself to ACPI reserved memory in the entry point. The functionality is to interpret and restore the S3 boot script
Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.
Copyright (c) 2017, AMD Incorporated. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file ScriptExecute.c.
EFI_STATUS EFIAPI BootScriptExecutorEntryPoint | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Entrypoint of Boot script exector driver, this function will be executed in normal boot phase and invoked by DXE dispatch.
[in] | ImageHandle | The firmware allocated handle for the EFI image. |
[in] | SystemTable | A pointer to the EFI System Table. |
EFI_SUCCESS | The entry point is executed successfully. |
other | Some error occurs when executing this entry point. |
Definition at line 411 of file ScriptExecute.c.
This is the Event notification function to reload BootScriptExecutor image to RESERVED mem and save it to LockBox.
Event | Pointer to this event |
Context | Event handler private data |
Definition at line 267 of file ScriptExecute.c.
VOID RegisterMemoryProfileImage | ( | IN EFI_GUID * | FileName, |
IN PHYSICAL_ADDRESS | ImageBase, | ||
IN UINT64 | ImageSize, | ||
IN EFI_FV_FILETYPE | FileType | ||
) |
Register image to memory profile.
FileName | File name of the image. |
ImageBase | Image base address. |
ImageSize | Image size. |
FileType | File type of the image. |
Definition at line 228 of file ScriptExecute.c.
EFI_STATUS EFIAPI S3BootScriptExecutorEntryFunction | ( | IN ACPI_S3_CONTEXT * | AcpiS3Context, |
IN PEI_S3_RESUME_STATE * | PeiS3ResumeState | ||
) |
Entry function of Boot script exector. This function will be executed in S3 boot path. This function should not return, because it is invoked by switch stack.
AcpiS3Context | a pointer to a structure of ACPI_S3_CONTEXT |
PeiS3ResumeState | a pointer to a structure of PEI_S3_RESUME_STATE |
EFI_INVALID_PARAMETER | - OS waking vector not found |
EFI_UNSUPPORTED | - something wrong when we resume to OS |
Definition at line 36 of file ScriptExecute.c.
UINT64 mAddressEncMask = 0 |
Definition at line 21 of file ScriptExecute.c.
EFI_GUID mBootScriptExecutorImageGuid |
Definition at line 16 of file ScriptExecute.c.
BOOLEAN mPage1GSupport = FALSE |
Definition at line 20 of file ScriptExecute.c.