araujo88 / primus-os

A simple bare-bones 32-bit operating system written in Assembly x86 and C for educational purposes
GNU General Public License v3.0
45 stars 10 forks source link
operating-system operating-system-kernel operating-system-learning operating-systems operating-systems-learning operating-systems-project operating-systems-tutorials

PrimusOS

A simple bare-bones 32-bit Ring 0 operating system written in Assembly x86 and C for educational purposes.
Inspired by Terry A. Davis (in memoriam).

Dependencies for building

xorriso
mtools

Bootloader "hello world" example

Compile bootloader

nasm -o bootloader.bin bootloader.asm

Testing with QEmu

qemu-system-x86_64 bootloader.bin

Compiling the kernel example

gcc -c kernel.c -o kernel -ffreestanding -m32

Generating the ISO image

make check_dir make clean
make primus-os.iso

About pull requests

PLEASE, comment on the related issue BEFORE sending a pull request! Thanks. Contributions and improvements are always welcome.

TODO