How rizonesoft/impossible-os works
Impossible OS is a from-scratch x86-64 operating system. Its principal workflow is UEFI boot and handoff into the kernel, followed by staged platform and system initialization, then scheduler and desktop startup. Runtime capabilities documented in the README include SMP scheduling, virtual memory, storage/filesystems, networking, ACPI, TPM measured boot, and a developing native API and Windows-like shell. The graph reflects documented relationships and the sampled kernel entry point; many subsystem links are not shown in the excerpts and are therefore omitted.
Main entry points: main.c Kernel entry · boot_init.h Boot phases · boot_storage.c Storage and VFS · bootx64.c UEFI bootloader
Components 21
UEFI Boot
- UEFI bootloader
src/boot/uefi/bootx64.c - Boot entry parser
src/boot/uefi/boot_entries_parser.c - Boot information ABI
include/kernel/boot_info.h
Kernel Core
- Kernel entry
src/kernel/main.c - Boot phases
include/kernel/boot_init.h - Virtual memory
include/kernel/mm/vmm.h - SMP scheduler
include/kernel/sched/task.h - Kernel worker
src/kernel/sched/kworker.c - ACPI services
include/kernel/acpi.h
System Services
- Storage and VFS
src/kernel/main/boot_storage.c - Networking
include/kernel/net/net.h - Win32 Registry
include/registry.h
Security
- TPM measured boot
include/kernel/tpm_nv.h - Mbed TLS crypto
src/libs/mbedtls/include/psa/crypto.h
Desktop and API
- Graphics interface
include/gfx.h - Window manager
src/desktop/wm.c - Desktop runtime
src/desktop/desktop.c - Native API
include/kernel/nt/nt_syscall.h - Win32 subsystem
user/lib/win32.c - Windows-like shell
src/desktop/controls.c
Other components
- UEFI firmware
Connections 20
- UEFI firmware → UEFI bootloader: starts
README.md - UEFI bootloader → Boot information ABI: passes boot_info
README.md - Boot information ABI → Kernel entry: hands off
README.md - Kernel entry → Boot phases: dispatches phases
src/kernel/main.c - Kernel entry → Virtual memory: initializes
- Kernel entry → SMP scheduler: starts
- Kernel entry → Storage and VFS: runs phase two
src/kernel/main.c - Boot phases → Storage and VFS: initializes services
src/kernel/main/boot_storage.c - Boot phases → ACPI services: initializes platform
- Boot phases → TPM measured boot: measures boot
- SMP scheduler → Kernel worker: runs worker
src/kernel/sched/kworker.c - Storage and VFS → Networking: initializes networking
src/kernel/main/boot_storage.c - Storage and VFS → Win32 Registry: initializes registry
src/kernel/main/boot_storage.c - SMP scheduler → Desktop runtime: supports runtime
- Graphics interface → Window manager: draws windows
src/desktop/wm.c - Window manager → Desktop runtime: composes desktop
- Desktop runtime → Windows-like shell: hosts shell
- Native API → Win32 subsystem: provides API
README.md - TPM measured boot → Mbed TLS crypto: uses cryptography
- UEFI bootloader → Boot entry parser: parses entries