LF OS
Hobby operating system for amd64 with high ambitions
Loading...
Searching...
No Matches
efi.c File Reference

(7c4d7d1 userspace/term: change eyecandy inclusion to use objcopy instead of xxd)

#include <log.h>
#include <string.h>
#include <stdbool.h>
#include <efi.h>
#include <acpi.h>
#include <vm.h>
+ Include dependency graph for efi.c:

Go to the source code of this file.

Functions

struct vm_tableefi_setup_mapping (struct LoaderStruct *loaderStruct)
 
void init_efi (struct LoaderStruct *loaderStruct)
 
void efi_append_log (char *msg)
 

Variables

static EFI_GUID gVendorLFOSGuid
 
static EFI_SYSTEM_TABLE * gST = 0
 

Function Documentation

◆ efi_append_log()

void efi_append_log ( char *  msg)

Definition at line 80 of file efi.c.

References gST, gVendorLFOSGuid, loge, and strlen().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ efi_setup_mapping()

struct vm_table * efi_setup_mapping ( struct LoaderStruct loaderStruct)

Definition at line 14 of file efi.c.

References addr, MemoryRegion::flags, logd, MEMORY_REGION_FIRMWARE, MEMORY_REGION_WB, MEMORY_REGION_WC, MEMORY_REGION_WP, MEMORY_REGION_WT, LoaderStruct::num_mem_desc, MemoryRegion::num_pages, LoaderStruct::size, MemoryRegion::start_address, vm_context_map(), and vm_context_new().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ init_efi()

void init_efi ( struct LoaderStruct loaderStruct)

Definition at line 53 of file efi.c.

References efi_setup_mapping(), LoaderStruct::firmware_info, gST, init_acpi_efi(), loge, logi, logw, vm_context_activate(), and vm_current_context().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ gST

EFI_SYSTEM_TABLE* gST = 0
static

Definition at line 12 of file efi.c.

◆ gVendorLFOSGuid

EFI_GUID gVendorLFOSGuid
static
Initial value:
= {
0x54a97f1c, 0x4828, 0x4bb0, { 0xaa, 0xa6, 0x95, 0x84, 0x5e, 0x2d, 0xb2, 0xee }
}

Definition at line 8 of file efi.c.