VoluSys Get started

Architecture overview

VoluSys is a monolithic kernel with a built-in window server. Apps are kernel threads that draw into their own window surfaces, and the compositor turns those surfaces into glass.

Boot#

The firmware runs EFI/BOOT/BOOTX64.EFI, a small PE32+ application built with clang and lld-link. It reads VOLUSYS/CONFIG.TXT, sets the display mode through the Graphics Output Protocol, loads KERNEL.ELF (a static position-independent ELF), applies its relocations, collects the memory map and ACPI pointers, exits boot services and jumps to the kernel with a bootinfo block. More about boot and the kernel.

Kernel#

The kernel sets up the GDT, TSS and IDT, a physical page allocator, page tables with a write-combined framebuffer, a heap, and a preemptive round-robin scheduler driven by a 1 kHz timer. It then brings up the drivers, the VFS, networking, audio and image decoding, and finally the window server. Apps are kernel threads, so the boundary between “kernel” and “app” is an API boundary for now, not a hardware one; 2.0 “Reef” changes that.

WindowServer#

Each window owns an off-screen surface. Apps draw into it with an immediate-mode toolkit and block in wm_wait_event() for input. The compositor thread tracks damaged rectangles and, for each frame, composes the wallpaper, window shadows, glass backdrops, window contents, traffic lights, the shell (menu bar, Tray, menus, Lighthouse, Helm) and the cursor, then copies only the damaged areas to the framebuffer. How the glass is drawn.

Networking and TLS#

The e1000 driver feeds a small TCP/IP stack (ARP, IPv4, ICMP, UDP, TCP) with DHCP and DNS clients. On top of that sit an HTTP/1.1 client and a TLS library supporting 1.3 and 1.2, used by Tide, curl and anything else that fetches over HTTPS. Networking details.

Tide#

The browser is an app like any other, built from a URL parser and loader, an HTML tree builder, a CSS engine, layout and paint, forms and cookies, a security module (CSP, SRI, CORS, storage isolation) and Surf, its JavaScript engine, with DOM bindings. Inside the engine.

Source layout#

PathContents
boot/UEFI loader
kernel/arch, mm, schedCPU setup, interrupts, memory, scheduler
kernel/drivers, audioInput, USB, network and audio drivers
kernel/net, tlsTCP/IP, DHCP, DNS, HTTP, TLS and crypto
kernel/gfx, wmDrawing, fonts, glass, compositor, shell, toolkit, theme
kernel/libImage and SVG decoders, clipboard, string and printf
kernel/appsVolume Browser, Settings, Terminal, Quill, Music, Lens, Tide…
tools/, tests/Asset generators, QEMU automation, host test suites