Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
loader.h File Reference
#include "init/init.h"
#include <libk/stivale2.h>

Go to the source code of this file.

Functions

void * stivale2_get_tag (struct stivale2_struct *stivale2_struct, uint64_t id)
 
void build_context_from_stivale2 (struct stivale2_struct *stivale2_struct, init_context_t *ctx)
 
void run_all_init_calls (init_context_t *ctx)
 

Function Documentation

◆ build_context_from_stivale2()

void build_context_from_stivale2 ( struct stivale2_struct * stivale2_struct,
init_context_t * ctx )

Definition at line 81 of file loader.c.

References stivale2_mmap_entry::base, stivale2_module::begin, stivale2_struct_tag_framebuffer::blue_mask_shift, stivale2_struct_tag_framebuffer::blue_mask_size, stivale2_module::end, stivale2_struct_tag_memmap::entries, init_context_t::framebuffer, stivale2_struct_tag_framebuffer::framebuffer_addr, stivale2_struct_tag_framebuffer::framebuffer_bpp, stivale2_struct_tag_framebuffer::framebuffer_height, stivale2_struct_tag_framebuffer::framebuffer_pitch, stivale2_struct_tag_framebuffer::framebuffer_width, stivale2_struct_tag_framebuffer::green_mask_shift, stivale2_struct_tag_framebuffer::green_mask_size, stivale2_struct_tag_boot_volume::guid, init_context_t::initrd_module, stivale2_struct_tag_kernel_file_v2::kernel_file, init_context_t::kernel_raw_addr, init_context_t::kernel_raw_size, stivale2_struct_tag_kernel_file_v2::kernel_size, stivale2_mmap_entry::length, LOG_INFO, LOG_WARN, MAX_MEMORY_ENTRIES, stivale2_struct_tag_memmap::memmap, init_context_t::memory, memory_context_t::memory_entries, memory_context_t::memory_map, stivale2_struct_tag_modules::module_count, stivale2_struct_tag_modules::modules, stivale2_struct_tag_boot_volume::part_guid, print_guid(), stivale2_struct_tag_framebuffer::red_mask_shift, stivale2_struct_tag_framebuffer::red_mask_size, stivale2_struct_tag_rsdp::rsdp, init_context_t::rsdp_addr, serial_trace, initrd_module::size, initrd_module::start, stivale2_get_tag(), stivale2_mem_entry_type_converter(), STIVALE2_STRUCT_TAG_BOOT_VOLUME_ID, STIVALE2_STRUCT_TAG_FRAMEBUFFER_ID, STIVALE2_STRUCT_TAG_KERNEL_FILE_V2_ID, STIVALE2_STRUCT_TAG_MEMMAP_ID, STIVALE2_STRUCT_TAG_MODULES_ID, STIVALE2_STRUCT_TAG_RSDP_ID, stivale2_module::string, strncmp(), stivale2_mmap_entry::type, and VIRT2PHYS.

Referenced by __attribute__().

◆ run_all_init_calls()

void run_all_init_calls ( init_context_t * ctx)

Definition at line 215 of file loader.c.

References __init_early_end, __init_early_start, and LOG_INFO.

Referenced by __attribute__().

◆ stivale2_get_tag()

void * stivale2_get_tag ( struct stivale2_struct * stivale2_struct,
uint64_t id )