|
Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
|
#include "libk/serial.h"#include "libk/stivale2.h"#include "memory/memory_utils.h"#include <init/init.h>#include <init/loader.h>#include <str.h>#include <type.h>#include <memory/entry.h>Go to the source code of this file.
Functions | |
| static uint8_t stack[4096 *32] | __attribute__ ((aligned(4096))) |
| __attribute__ ((section(".stivale2hdr"), used)) | |
| __attribute__ ((noinline)) | |
| static uint32_t | stivale2_mem_entry_type_converter (uint32_t type) |
| static void | print_guid (struct stivale2_guid *g) |
| void | build_context_from_stivale2 (struct stivale2_struct *stivale2_struct, init_context_t *ctx) |
| void | run_all_init_calls (init_context_t *ctx) |
Variables | |
| static struct stivale2_header_tag_smp | smp_hdr_tag |
| static struct stivale2_header_tag_framebuffer | framebuffer_hdr_tag |
| initcall_t | __init_early_start [] |
| initcall_t | __init_early_end [] |
| __attribute__ | ( | (noinline) | ) |
Definition at line 34 of file loader.c.
References stivale2_tag::identifier, stivale2_tag::next, NULL, and stivale2_struct::tags.
| __attribute__ | ( | (section(".stivale2hdr"), used) | ) |
Definition at line 27 of file loader.c.
References framebuffer_hdr_tag, stack, and used.
| 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__().
|
static |
Definition at line 74 of file loader.c.
References stivale2_guid::a, stivale2_guid::b, stivale2_guid::c, stivale2_guid::d, and LOG_INFO.
Referenced by build_context_from_stivale2().
| 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__().
Definition at line 50 of file loader.c.
References ENTRY_MMAP_ACPI_NVS, ENTRY_MMAP_ACPI_RECLAIMABLE, ENTRY_MMAP_BAD_MEMORY, ENTRY_MMAP_BOOTLOADER_RECLAIMABLE, ENTRY_MMAP_FRAMEBUFFER, ENTRY_MMAP_KERNEL_AND_MODULES, ENTRY_MMAP_RESERVED, ENTRY_MMAP_USABLE, STIVALE2_MMAP_ACPI_NVS, STIVALE2_MMAP_ACPI_RECLAIMABLE, STIVALE2_MMAP_BAD_MEMORY, STIVALE2_MMAP_BOOTLOADER_RECLAIMABLE, STIVALE2_MMAP_FRAMEBUFFER, STIVALE2_MMAP_KERNEL_AND_MODULES, STIVALE2_MMAP_RESERVED, STIVALE2_MMAP_USABLE, and type.
Referenced by build_context_from_stivale2().
|
extern |
Referenced by run_all_init_calls().
|
extern |
Referenced by run_all_init_calls().
|
static |
Definition at line 20 of file loader.c.
Referenced by __attribute__().
|
static |