TianoCore EDK2 master
|
#include <PiPei.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/PcdLib.h>
#include <Library/HobLib.h>
#include <Library/FdtLib.h>
#include "VirtualMemory.h"
#include "UefiPayloadEntry.h"
Go to the source code of this file.
Data Structures | |
struct | _X64_IDT_TABLE |
Macros | |
#define | STACK_SIZE 0x20000 |
#define | IDT_ENTRY_COUNT 32 |
Typedefs | |
typedef struct _X64_IDT_TABLE | X64_IDT_TABLE |
Functions | |
UINTN | Create4GPageTablesIa32Pae (IN EFI_PHYSICAL_ADDRESS StackBase, IN UINTN StackSize) |
BOOLEAN | IsIa32PaeSupport (VOID) |
BOOLEAN | ToBuildPageTable (VOID) |
VOID | HandOffToDxeCore (IN EFI_PHYSICAL_ADDRESS DxeCoreEntryPoint, IN EFI_PEI_HOB_POINTERS HobList) |
EFI_STATUS EFIAPI | _ModuleEntryPoint (IN UINTN BootloaderParameter) |
Variables | |
VOID * | mHobList |
GLOBAL_REMOVE_IF_UNREFERENCED IA32_GDT | gGdtEntries [] |
GLOBAL_REMOVE_IF_UNREFERENCED CONST IA32_DESCRIPTOR | gGdt |
GLOBAL_REMOVE_IF_UNREFERENCED IA32_DESCRIPTOR | gLidtDescriptor |
Ia32-specific functionality for DxeLoad.
Copyright (c) 2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file DxeLoadFuncFit.c.
#define IDT_ENTRY_COUNT 32 |
Definition at line 21 of file DxeLoadFuncFit.c.
#define STACK_SIZE 0x20000 |
Definition at line 20 of file DxeLoadFuncFit.c.
EFI_STATUS EFIAPI _ModuleEntryPoint | ( | IN UINTN | BootloaderParameter | ) |
Entry point to the C language phase of UEFI payload.
[in] | BootloaderParameter | The starting address of bootloader parameter block. |
It | will not return if SUCCESS, and return error when passing bootloader parameter. |
Definition at line 400 of file DxeLoadFuncFit.c.
UINTN Create4GPageTablesIa32Pae | ( | IN EFI_PHYSICAL_ADDRESS | StackBase, |
IN UINTN | StackSize | ||
) |
Allocates and fills in the Page Directory and Page Table Entries to establish a 4G page table.
[in] | StackBase | Stack base address. |
[in] | StackSize | Stack size. |
Definition at line 93 of file DxeLoadFuncFit.c.
VOID HandOffToDxeCore | ( | IN EFI_PHYSICAL_ADDRESS | DxeCoreEntryPoint, |
IN EFI_PEI_HOB_POINTERS | HobList | ||
) |
Transfers control to DxeCore.
This function performs a CPU architecture specific operations to execute the entry point of DxeCore with the parameters of HobList.
DxeCoreEntryPoint | The entry point of DxeCore. |
HobList | The start of HobList passed to DxeCore. |
Definition at line 257 of file DxeLoadFuncFit.c.
BOOLEAN IsIa32PaeSupport | ( | VOID | ) |
The function will check if IA32 PAE is supported.
TRUE | IA32 PAE is supported. |
FALSE | IA32 PAE is not supported. |
Definition at line 191 of file DxeLoadFuncFit.c.
BOOLEAN ToBuildPageTable | ( | VOID | ) |
The function will check if page table should be setup or not.
TRUE | Page table should be created. |
FALSE | Page table should not be created. |
Definition at line 219 of file DxeLoadFuncFit.c.
GLOBAL_REMOVE_IF_UNREFERENCED CONST IA32_DESCRIPTOR gGdt |
Definition at line 72 of file DxeLoadFuncFit.c.
GLOBAL_REMOVE_IF_UNREFERENCED IA32_GDT gGdtEntries[] |
Definition at line 38 of file DxeLoadFuncFit.c.
GLOBAL_REMOVE_IF_UNREFERENCED IA32_DESCRIPTOR gLidtDescriptor |
Definition at line 77 of file DxeLoadFuncFit.c.