VoluSys Get started

Boot & kernel

From the firmware handing over control to a ready desktop in a few hundred milliseconds.

The loader#

  1. Opens the boot volume and reads \VOLUSYS\CONFIG.TXT (for example resolution=1920x1080).
  2. Finds the Graphics Output Protocol and picks the closest available mode.
  3. Reads \VOLUSYS\KERNEL.ELF. The kernel is linked as a static PIE at address 0; the loader places it below 4 GiB and applies its relocations, which is also the hook for KASLR in 3.0 “Atoll”.
  4. Records the framebuffer, ACPI tables and the final memory map, calls ExitBootServices, and jumps to the kernel entry with a pointer to bootinfo_t.

Kernel start-up#

The kernel initialises its subsystems in a fixed order, logging each step to the serial port:

serial → cpu (GDT/TSS/IDT, PIC, PIT, TSC calibration) → pmm → vmm → heap → fonts
→ scheduler → RTC → PCI → PS/2 → USB → VFS → network → audio → images → WindowServer

In QEMU with hardware acceleration, the log ends with [boot] ready in 261 ms at 1920×1080. DHCP finishes in the background.

Memory#

A bitmap physical page allocator tracks usable RAM from the UEFI memory map. Page tables map physical memory, with the framebuffer mapped write-combined for fast blits, and MMIO above 4 GiB is reachable through 48-bit mappings. A general-purpose heap (kmalloc/kfree) serves the rest of the kernel.

Tasks#

The scheduler is preemptive and multi-core: LAPIC/IOAPIC interrupts, HPET and calibrated TSC/LAPIC timers, application-processor bring-up, and SMP-safe locking. Each app runs in its own kernel thread. Ring-3 processes arrive in 2.0 “Reef”.

Randomness#

A ChaCha20-based CSPRNG with fast key erasure is seeded from RDSEED/RDRAND (when the CPU has them) plus TSC jitter, all mixed through SHA-256. It supplies the TLS key exchange and anything else that needs secrets.

Files#

The VFS is a hierarchical file system seeded at boot with the home folder (/Users/user), sample pictures and music. A storage manager probes AHCI, NVMe, virtio-blk and USB mass-storage devices, mounts FAT volumes under /Volumes/<label>, and keeps the home folder and settings on a persistence volume: the installer’s data partition (VOLUSYSDATA), else a volume labelled VOLUSYS, else the partition VoluSys booted from (\VOLUSYS\HOME, \VOLUSYS\SETTINGS.CFG).