NeKernel dev
Loading...
Searching...
No Matches
BootEFI.cc File Reference

Functions

EXTERN_C Void rt_reset_hardware ()
EXTERN_C Kernel::VoidPtr boot_read_cr3 ()
STATIC Bool boot_init_fb ()
 Finds and stores the GOP object.
EFI_EXTERN_C EFI_API Int32 BootloaderMain (EfiHandlePtr image_handle, EfiSystemTable *sys_table)
 BootloaderMain EFI entrypoint.

Variables

STATIC EfiGraphicsOutputProtocolkGop = nullptr
STATIC UInt16 kGopStride = 0U
STATIC EFI_GUID kGopGuid
EFI_GUID kEfiGlobalNamespaceVarGUID

Function Documentation

◆ boot_init_fb()

STATIC Bool boot_init_fb ( )

Finds and stores the GOP object.

◆ boot_read_cr3()

EXTERN_C Kernel::VoidPtr boot_read_cr3 ( )

◆ BootloaderMain()

EFI_EXTERN_C EFI_API Int32 BootloaderMain ( EfiHandlePtr image_handle,
EfiSystemTable * sys_table )

BootloaderMain EFI entrypoint.

Parameters
image_handleHandle of this image.
sys_tableThe system table of it.
Returns
nothing, never returns.

! Init the EFI library.

access attributes (in order) EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS

◆ rt_reset_hardware()

EXTERN_C Void rt_reset_hardware ( )

Related to jumping to the reset vector.

Variable Documentation

◆ kEfiGlobalNamespaceVarGUID

EFI_GUID kEfiGlobalNamespaceVarGUID
Initial value:
= {
0x8BE4DF61, 0x93CA, 0x11D2, {0xAA, 0x0D, 0x00, 0xE0, 0x98, 0x03, 0x2B, 0x8C}}

◆ kGop

Graphics related.

◆ kGopGuid

STATIC EFI_GUID kGopGuid

◆ kGopStride

STATIC UInt16 kGopStride = 0U