![]() |
Xyris
0.5
|
#include <Arch/Arch.hpp>#include <Arch/i686/Bootloader/EarlyPanic.hpp>#include <Support/sections.hpp>
Include dependency graph for EarlyPanic.cpp:Go to the source code of this file.
Macros | |
| #define | TTY_WIDTH 80 |
| #define | TTY_HEIGHT 25 |
| #define | VGA_COLOR(bg, fg) (uint16_t)(((bg)<<4)|((fg)&0xF)) |
| #define | VGA_CHAR(ch, co) (uint16_t)((ch)|((co)<<8)) |
Enumerations | |
| enum | bios_color : uint16_t { BIOS_Black = 0, BIOS_Blue = 1, BIOS_Green = 2, BIOS_Cyan = 3, BIOS_Red = 4, BIOS_Magenta = 5, BIOS_Brown = 6, BIOS_LightGrey = 7, BIOS_DarkGrey = 8, BIOS_LightBlue = 9, BIOS_LightGreen = 10, BIOS_LightCyan = 11, BIOS_LightRed = 12, BIOS_LightMagenta = 13, BIOS_Yellow = 14, BIOS_White = 15 } |
Functions | |
| __attribute__ ((section(".early_text"))) void EarlyPanic(const char *str) | |
| #define TTY_HEIGHT 25 |
Definition at line 18 of file EarlyPanic.cpp.
| #define TTY_WIDTH 80 |
Definition at line 17 of file EarlyPanic.cpp.
| #define VGA_CHAR | ( | ch, | |
| co | |||
| ) | (uint16_t)((ch)|((co)<<8)) |
Definition at line 20 of file EarlyPanic.cpp.
| #define VGA_COLOR | ( | bg, | |
| fg | |||
| ) | (uint16_t)(((bg)<<4)|((fg)&0xF)) |
Definition at line 19 of file EarlyPanic.cpp.
| enum bios_color : uint16_t |
Definition at line 22 of file EarlyPanic.cpp.
| __attribute__ | ( | (section(".early_text")) | ) | const |
Map bootloader information into the higher half of memory so that the kernel can access it and parse it.
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.
Definition at line 42 of file EarlyPanic.cpp.
Here is the call graph for this function: