Skip to content

khaledh/bitflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitflow

A hobby 32-bit x86 kernel written in C and assembly.

Screenshot

Features

  • Protected mode with ring 0/3 separation
  • Preemptive multitasking with round-robin scheduling
  • Keyboard input via PS/2 interrupt handler
  • ATA disk driver for loading tasks at runtime
  • Simple shell with command execution
  • VGA text mode console

Tutorial

A step-by-step guide to building this kernel from scratch is available in the tutorial folder.

Building

Requires an i686-elf cross-compiler toolchain (GCC, LD) and NASM.

make

Running

make run          # curses mode (in terminal)
make run-window   # graphical window

Disk Layout

Sector 0     Boot sector
Sector 1     File table (generated at build time)
Sector 2+    Kernel
...          Tasks, fonts

The file table maps task names to their disk sectors, so the loader can find them at runtime without hardcoded offsets.

Shell Commands

  • help - list commands
  • about - version info
  • tasks - show running tasks
  • task_a, task_b - load sample tasks from disk
  • quit - shutdown

License

MIT

About

A 32-bit kernel implemented in C

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published