![]() |
Xyris
0.5
|
#include <Arch/i686/Bootloader/EarlyPanic.hpp>
#include <Arch/i686/Bootloader/Loader.hpp>
#include <Arch/i686/Memory.i686.hpp>
#include <Arch/i686/regs.hpp>
#include <Support/sections.hpp>
#include <stdint.h>
#include <stivale/stivale2.h>
Go to the source code of this file.
Macros | |
#define | _STIVALE2_SPLIT_64 |
#define | KERNEL_STACK_SZ 4 * ARCH_PAGE_SIZE |
#define | STIVALE2_MAGIC 0x73747632 |
Functions | |
__attribute__ ((section(".early_bss"), aligned(4096))) | |
__attribute__ ((section(".early_text"))) | |
__attribute__ ((section(".early_text"), noreturn)) | |
__attribute__ ((section(".early_data"), used)) const | |
__attribute__ ((section(".stivale2hdr"), used)) const | |
#define _STIVALE2_SPLIT_64 |
Definition at line 19 of file stivale2.c.
#define KERNEL_STACK_SZ 4 * ARCH_PAGE_SIZE |
Definition at line 22 of file stivale2.c.
#define STIVALE2_MAGIC 0x73747632 |
Definition at line 23 of file stivale2.c.
__attribute__ | ( | (section(".early_bss"), aligned(4096)) | ) |
Scan the stivale2 tags to find the reclaimable bootloader memory map tag that starts at the stivale2 tag base address. Return the length found. We'll memory map the entire area.
Definition at line 30 of file stivale2.c.
__attribute__ | ( | (section(".early_data"), used) | ) | const |
Definition at line 293 of file stivale2.c.
__attribute__ | ( | (section(".early_text")) | ) |
Finalize stage1 by loading the finalized page directory and enabling paging.
Stivale2 protocol kernel stage 1 entry. Stage 1 is responsible for providing an entry point for the bootloader in C, performing any necessary bootstrappign and then calling into the C++ stage 2.
identity map from 0x00000000 -> LOWMEM_END
Map kernel memory into the higher half of memory See linker.ld for details on where the kernel should be mapped.
Map bootloader information into the higher half of memory so that the kernel can access it and parse it.
Definition at line 113 of file stivale2.c.
__attribute__ | ( | (section(".early_text"), noreturn) | ) |
__attribute__ | ( | (section(".stivale2hdr"), used) | ) | const |
Definition at line 304 of file stivale2.c.