TianoCore EDK2 master
|
#include <Uefi.h>
#include <Protocol/Capsule.h>
#include <Protocol/DxeSmmReadyToLock.h>
#include <Protocol/VariableLock.h>
#include <Guid/CapsuleVendor.h>
#include <Guid/AcpiS3Context.h>
#include <Library/DebugLib.h>
#include <Library/PcdLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/UefiRuntimeLib.h>
#include <Library/BaseLib.h>
#include <Library/UefiLib.h>
#include <Library/BaseMemoryLib.h>
Go to the source code of this file.
Macros | |
#define | EXTRA_PAGE_TABLE_PAGES 8 |
Functions | |
VOID * | AllocateReservedMemoryBelow4G (IN UINTN Size) |
VOID EFIAPI | VariableLockCapsuleLongModeBufferVariable (IN EFI_EVENT Event, IN VOID *Context) |
VOID EFIAPI | PrepareContextForCapsulePei (VOID) |
VOID | SaveLongModeContext (VOID) |
Create the variable to save the base address of page table and stack for transferring into long mode in IA32 capsule PEI.
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file SaveLongModeContext.c.
#define EXTRA_PAGE_TABLE_PAGES 8 |
Definition at line 31 of file SaveLongModeContext.c.
Allocate EfiReservedMemoryType below 4G memory address.
This function allocates EfiReservedMemoryType below 4G memory address.
Size | Size of memory to allocate. |
Definition at line 44 of file SaveLongModeContext.c.
VOID EFIAPI PrepareContextForCapsulePei | ( | VOID | ) |
Definition at line 104 of file SaveLongModeContext.c.
VOID SaveLongModeContext | ( | VOID | ) |
Create the variable to save the base address of page table and stack for transferring into long mode in IA32 capsule PEI.
Definition at line 201 of file SaveLongModeContext.c.
Register callback function upon VariableLockProtocol to lock EFI_CAPSULE_LONG_MODE_BUFFER_NAME variable to avoid malicious code to update it.
[in] | Event | Event whose notification function is being invoked. |
[in] | Context | Pointer to the notification function's context. |
Definition at line 79 of file SaveLongModeContext.c.