How alejoaquili/x64barebones works
x64BareBones is a minimal Intel 64-bit operating-system development project: a bootable kernel with support for separately packaged and loaded binary modules. The documented workflow is to package a kernel with modules, boot the system, load modules, and run kernel code that demonstrates a sample module. The repository also includes the Pure64 bootloader and a BMFS disk-image utility. Connections among these larger subsystems are limited where their implementations were not sampled; dashed edges indicate unverified integration.
Main entry points: kernel.c Kernel startup and main · main.c Module packer · moduleLoader.c Module loader · sampleCodeModule.c Sample code module
Components 12
Boot and disk
- Pure64 bootloader
Bootloader/Pure64/src - BMFS utility
Bootloader/BMFS/bmfs.c - BMFS disk image
Kernel runtime
- Kernel startup and main
Kernel/kernel.c - Naive console
Kernel/naiveConsole.c - Memory routines
Kernel/lib.c - Module loader
Kernel/moduleLoader.c
Binary modules
- Module entry stub
Userland/SampleCodeModule/_loader.c - Sample code module
Userland/SampleCodeModule/sampleCodeModule.c
Packaging
- Module packer
Toolchain/ModulePacker/main.c - Packed image format
Toolchain/ModulePacker/modulePacker.h
Other components
- Developer
Connections 14
- Developer → Module packer: packages binaries
Toolchain/ModulePacker/main.c - Module packer → Packed image format: builds image
Toolchain/ModulePacker/main.c - Module packer → Kernel startup and main: includes kernel
Toolchain/ModulePacker/main.c - Module packer → Sample code module: appends modules
Toolchain/ModulePacker/main.c - Pure64 bootloader → Kernel startup and main: starts kernel
- Kernel startup and main → Module loader: loads modules
Kernel/kernel.c - Module loader → Memory routines: copies bytes
Kernel/moduleLoader.c - Kernel startup and main → Naive console: prints status
Kernel/kernel.c - Module loader → Naive console: prints progress
Kernel/moduleLoader.c - Kernel startup and main → Sample code module: calls module
Kernel/kernel.c - Sample code module → Module entry stub: starts via stub
- Packed image format → Module loader: supplies payload
- Developer → BMFS utility: runs commands
Bootloader/BMFS/bmfs.c - BMFS utility → BMFS disk image: reads and writes
Bootloader/BMFS/bmfs.c