Skip to content

Sebazzz/sdos

Repository files navigation

Damsteen operating system

Experimental operating system based on fiddling with assembly and C.

32-bit protected mode OS. Bootloader set-ups up protected mode with the GDT, kinit set-up interrupts and exception handling.

Prequisites

OS: Debian or "Windows subsystem for Linux" (WSL) with Ubuntu. GCC 4.9

apt install build-essential make nasm qemu qemu-system-x86-64 gcc-multilib g++-multilib

If using WSL, don't forget to install an X display server like XMing, and set the DISPLAY variable.

Building

Make boot disk:

make

Run:

make run

Wait for GDB to attach on port 26000:

make debug

Clean output artifacts:

make clean

Debugging

Ensure GDB is installed

apt-get install gdb

Configure for auto-loading gdb options file:

echo "add-auto-load-safe-path `pwd`/.gdbinit" >> ~/.gdbinit

About

Damsteen Operating System - Some fiddling with assembly and C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published