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.
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.
Make boot disk:
make
Run:
make run
Wait for GDB to attach on port 26000:
make debug
Clean output artifacts:
make clean
Ensure GDB is installed
apt-get install gdb
Configure for auto-loading gdb options file:
echo "add-auto-load-safe-path `pwd`/.gdbinit" >> ~/.gdbinit