OVERVIEW
Monorepo/Low-Level & OS/os/ (Kale OS)
v0.1.0 • FoundationalSource Code
os/

os/ (Kale OS)

Bare-Metal Operating System & Microkernel

Pushing Kale directly to bare-metal hardware. Features a 64-bit long-mode bootloader, physical memory page frame allocator, IDT interrupt dispatch, and linear framebuffer driver capable of rendering Kale UI widgets without an operating system.

Architecturex86_64 Bare-Metal
Boot StandardMultiboot2 / UEFI
Kernel ModelMicrokernel in Kale
MilestoneActive Module
os/ (Kale OS)
Physical Memory Page Frame Architecture
x86_64 4-Level Paging (PML4)
VIRTUAL ADDRESS RANGEMAPPING & PRIVILEGEPURPOSE
0x00000000 - 0x000FFFFFKernel Ring 01MB Real Mode & BIOS Area
0x00100000 - 0x00FFFFFFKernel Ring 0Kernel Binary & Frame Allocator
0xFD000000 - 0xFE000000Hardware MMIOLinear Framebuffer (1920x1080)
Bare-Metal Runtime

Hardware Linear Framebuffer

The microkernel boots via standard Multiboot header, transitions the CPU to 64-bit long mode, programs the Interrupt Descriptor Table (IDT), and renders Kale UI widgets directly onto the physical display controller.

Boot Protocol: Multiboot 1 / 2 • Target: x86_64 ELF64
Direct Hardware Framebuffer • No OS dependencies
Microkernel Architecture
kernel_entry.kl
kale
// Bare-metal kernel entry point in pure Kale
struct BootInfo {
    framebuffer_addr: *uint32,
    screen_width: uint32,
    screen_height: uint32,
    pitch: uint32,
}

fn kernel_main(boot: *BootInfo) -> void {
    // Clear screen to deep Renaissance navy
    let fb: *uint32 = boot.framebuffer_addr;
    let total_pixels: uint32 = boot.screen_width * boot.screen_height;
    
    let i: uint32 = 0;
    while i < total_pixels {
        fb[i] = 0x070b19; // #070b19
        i = i + 1;
    }
}
Compilation & Linker Directives

Deterministic command-line invocations to build, link native dynamic dependencies, and run automated regression tests:

$nasm -f elf64 os/boot/boot.asm -o bin/boot.o
$kale build os/kernel/main.kl -o bin/kernel.bin --no-std
$qemu-system-x86_64 -kernel bin/kernel.bin
Monorepo Governance

GPG Key 1B917D4779A6102E • Continuous integration with automated symbol verification.

Architectural Capabilities
Zero-OS Runtime

Compiles without standard C runtime, directly interfacing with CPU control registers and paging tables.

Hardware Framebuffer UI

Draws UI components directly to memory-mapped linear framebuffers in high-resolution graphics mode.

Interrupt & Timer Management

Native Programmable Interrupt Controller (PIC/APIC) configuration and preemptive time-slice scheduler.