15#include <source_location>
22#if defined(IGROS_ARCH_i386)
28#elif defined(IGROS_ARCH_x86_64)
69 constexpr auto DRIVERS = std::to_array<drivers::driver_t>({
86 std::source_location::current().function_name()
95 std::source_location::current().function_name()
104 std::source_location::current().function_name()
113 std::source_location::current().function_name()
122 std::source_location::current().function_name()
131 std::source_location::current().function_name()
static void init() noexcept
Init exceptions.
static void enable() noexcept
Enable interrupts.
static void init() noexcept
Init IRQ.
static void init() noexcept
Build kernel page tables and switch to them:
Exceptions low-level operations.
Global descriptor table low-level operations.
Interrupt descriptor table low-level operations.
Kernel text print functions.
Keyboard generic handling.
auto serialSetup() noexcept -> bool
Setup COM1 (115200 8N1) with receive interrupt.
auto vmemInit() noexcept -> bool
Init VGA console.
auto keyboardSetup() noexcept -> bool
Setup keyboard function.
auto rtcSetup() noexcept -> bool
Setup RTC function.
auto init(const std::array< drivers::driver_t, N > &drivers) noexcept -> igros_usize_t
Initialize drivers in order and print status of each, returns failed drivers count.
void kprintf(const char *const format,...) noexcept
Kernel printf function (arguments are checked against format at compile time).
Code shared by i386 and x86_64: ports, interrupts, exceptions, paging.
static void platformInit() noexcept
Initialize x86.
static void platformSuspend() noexcept
Suspend x86.
static void platformWakeup() noexcept
Wakeup x86.
static void platformReboot() noexcept
Reboot x86.
static void platformFinalize() noexcept
Finalize x86.
constexpr auto ARCH_NAME
Current architecture.
static void platformShutdown() noexcept
Shutdown x86.
x86 family current (native) architecture selection
Paging (i386 2-level and x86_64 4-level page tables).
Programmable interrupt timer.
VGA memory low-level operations.
Interrupts low-level operations.
Global descriptor table low-level operations.
Interrupt descriptor table low-level operations.