Skip to content

Kbz-8/42_KFS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42 Kernel From Scratch

A minimalist kernel from scratch, written in Zig 0.13.

Overview

42_KFS is a low-level educational operating system project. It is designed to help understand OS fundamentals, boot processes, memory management, and hardware interaction—all implemented in Zig for safety and performance.

Features

  • Written entirely in Zig 0.13 for modern language safety and performance

  • Minimalist kernel: simple, clear, and well-documented codebase

  • Bootloader setup and kernel entry

  • Basic device drivers (VGA text output, keyboard input, etc.)

  • A shell:
    image

  • Kernel panics:
    image

  • Stack trace:
    image

Requirements

  • Zig 0.13
  • QEMU or another x86 emulator/virtual machine

Getting Started

  1. Clone the repo:

    git clone https://github.com/Kbz-8/42_KFS.git
    cd 42_KFS
  2. Install dependencies:

  3. Build the kernel:

    zig build
  4. Run in QEMU:

    zig run

Acknowledgments


About

Repository for the Kernel From Scratch 42 projects, written in Zig

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages