PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
main.c File Reference
#include "disk.h"
#include "gop.h"
#include "kernel.h"
#include "mem.h"
#include <boot/boot_info.h>
#include <kernel/mem/paging.h>
#include <kernel/version.h>
#include <efi.h>
#include <efilib.h>
Include dependency graph for main.c:

Go to the source code of this file.

Macros

#define EXIT_BOOT_SERVICES_MAX_RETRY   5
 

Functions

static void splash_screen (void)
 
static EFI_STATUS open_root_volume (EFI_FILE **file, EFI_HANDLE imageHandle)
 
static void * rsdp_get (EFI_SYSTEM_TABLE *systemTable)
 
static EFI_STATUS boot_info_populate (EFI_HANDLE imageHandle, EFI_SYSTEM_TABLE *systemTable, boot_info_t *bootInfo)
 
static EFI_STATUS exit_boot_services (EFI_HANDLE imageHandle, boot_info_t *bootInfo)
 
EFI_STATUS efi_main (EFI_HANDLE imageHandle, EFI_SYSTEM_TABLE *systemTable)
 

Macro Definition Documentation

◆ EXIT_BOOT_SERVICES_MAX_RETRY

#define EXIT_BOOT_SERVICES_MAX_RETRY   5

Definition at line 13 of file main.c.

Function Documentation

◆ splash_screen()

static void splash_screen ( void  )
static

Definition at line 15 of file main.c.

Here is the caller graph for this function:

◆ open_root_volume()

static EFI_STATUS open_root_volume ( EFI_FILE **  file,
EFI_HANDLE  imageHandle 
)
static

Definition at line 25 of file main.c.

Here is the caller graph for this function:

◆ rsdp_get()

static void * rsdp_get ( EFI_SYSTEM_TABLE *  systemTable)
static

Definition at line 53 of file main.c.

Here is the caller graph for this function:

◆ boot_info_populate()

static EFI_STATUS boot_info_populate ( EFI_HANDLE  imageHandle,
EFI_SYSTEM_TABLE *  systemTable,
boot_info_t bootInfo 
)
static

Definition at line 81 of file main.c.

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

◆ exit_boot_services()

static EFI_STATUS exit_boot_services ( EFI_HANDLE  imageHandle,
boot_info_t bootInfo 
)
static

Definition at line 122 of file main.c.

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

◆ efi_main()

EFI_STATUS efi_main ( EFI_HANDLE  imageHandle,
EFI_SYSTEM_TABLE *  systemTable 
)

Definition at line 172 of file main.c.

Here is the call graph for this function: