Skip to content
Hexagonix PT

Features

What the Hexagon kernel and the Hexagonix userland offer today.

architecture
x86, 32-bit
written in
x86 Assembly (fasm)
kernel
Hexagon, monolithic
multitasking
preemptive
executables
HAPP format
files
FAT16B and VFS
video
VESA VBE and text mode
boot
Saturno and HBoot
license
BSD-3-Clause

Processor

Hexagon runs in 32-bit protected mode and was written to work on recent hardware as well as on old machines. The minimum is a Pentium III, from 1999, with SSE and MMX.

Processes and multitasking

Multitasking is preemptive, with a round-robin scheduler and an idle process. Each process has its own stack, a PID that is never reused and a state that tracks its life cycle: idle, blocked, running, ready or zombie.

Processes can be started without blocking the caller, with spawn(), and ended by PID, with kill(). Environment variables belong to each process and pass from parent to child.

Memory

The system runs in 32 MB of memory, which makes it usable on quite old machines.

Each process's structures are allocated dynamically by the kernel, with malloc() and free() made safe under preemption.

Disks and files

A virtual file system handles access to volumes, with read and write support for FAT16B. There are directories, absolute paths such as /bin/ls and paths relative to the current directory.

Files follow a Unix-style hierarchy: utilities in /bin and /sbin, configuration in /etc and manual pages in /usr/share/man.

Video

Hexagon supports VESA VBE graphics in several resolutions, and text mode as well. Text in graphics mode goes through its own font engine, and the system font can be changed in the settings application or with the fnt utility.

Terminals and input

The system provides virtual terminals, each with its own session. PS/2 or USB keyboards and mice are supported, and a real-time clock keeps the date and time.

Serial and parallel ports

Serial and parallel ports are used for communication, printing and debugging. When running in QEMU, the kernel's debug output can be written to a file on the host machine.

Users

Login uses a user database with hashed passwords. The root user has ID 0, and other users get IDs starting at 1. The adduser, deluser, passwd and su utilities manage accounts.

Programs

Programs use the HAPP executable format and talk to the kernel through a system call. init starts and watches services listed in /etc/rc, and the shells run scripts, look up programs in PATH and send processes to the background with &.

The system is self-hosting: fasmX, the port of the flat assembler used to build Hexagonix, runs on it. You can write and build applications inside the system, including with the Lyoko IDE.