Simple OS
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Mathieu Maret 44fa5967dd Fix uninitialized variable 2 months ago
arch/x86 OnDemand paging for heap 9 months ago
core Fix uninitialized variable 2 months ago
docs Add diagram to doc 10 months ago
drivers keyboard: add alt modifier 2 months ago
tests Import ringbuffer implementation 2 years ago
userspace tinyc : add > support 2 months ago
.clang-format vim and clang-format configuration file 3 years ago
.gitignore Add doc generation 9 months ago
Makefile Add doc generation 9 months ago Add serialOut info in doc 9 months ago Add partition table support 2 years ago
debug.gdb Add debug link for kernel symbols 1 year ago
disk.sfdisk Add partition table support 2 years ago
linker.ld First step for memory management 5 years ago
screenshot_1.png update screenshot 2 years ago


Matos is a simple OS.

It's targetting x86 and inspirated by



To generate iso image

  • mtools xorriso (which is libisoburn on ArchLinux)
  • gcc >= 6
  • sfdisk (util-linux)

Run it

make run


make fd.iso && qemu-system-x86_64 -cdrom fd.iso

you can also test it

make test


gdb could be launch with debug symbols using :

make debug

Serial log will be saved in the serialOut file.

Then you can check some matos specific commands or pretty printing with

help user-defined info pretty-printer (Should contains matos_pretty_printers)

Change Disk partitions

You can either modify the disk.sfdisk file


modify the disk image with your favorit tool (e.g. gparted) and re-generate disk.sfdisk

sfdisk -d > disk.sfdisk


  • VGA Driver
  • keyboard Driver
  • Serial Driver
  • Timer
  • Virtual memory
  • Allocator
  • Multithread (Full preempt)
  • Mutex
  • ATA
  • basic userspace with syscall


  • ringbuffer protected by mutex
  • blocking read