How manuothatceguy/so_tp02 works
Project type and purpose
• This is a bare-metal operating system skeleton (“x64BareBones”) for Intel x86_64 hardware. It provides:
• A bootloader (two flavors: BMFS-based and Pure64)
• A minimal C/ASM kernel with subsystems (memory management, scheduler, drivers, syscalls, module loader)
• A toolchain to pack modules and assemble the image
• A sample “userland” module to exercise syscalls
• Build/run scripts that invoke QEMU
File structure
• Top‐level directories:
• Bootloader/ (BMFS + Pure64 sources and docs)
• Toolchain/ (module packer, build rules)
• Kernel/ (C and ASM code, drivers, memory management, interrupts, syscalls, module loader)
• SharedLibraries/ (headers shared between kernel and modules)
• Userland/ (sample module, shell, tests)
• Image/ (Makefile for image layout)
• Configuration & scripts: Makefile, compile.sh, init.sh, run.sh
• External tools: nasm, gcc, make, qemu
Extract architecture insights from README
• Build flow: Toolchain → Kernel → Bootloader → run.sh (QEMU)
• Final image combines bootloader, kernel.bin, packed modules
• Entry point: bootloader loads kernel, initializes hardware, hands off to kernel
• Module loader in kernel can dynamically load extra binaries