Skip to content

zaicevas/i686-os

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

i686-os

Toy OS for i686 arch

Usage

make # builds .iso and runs qemu
make clean build # builds .iso
make clean build run_debug # builds .iso and runs qemu with gdb stub

Features

  • Multiboot 2 compliant
  • Graphics mode (VESA)
  • Flat memory model

Hardware requirements

  • Should support graphics mode and linear framebuffer

Useful debugging cmds

objdump -D kernel.o -M intel
objdump -s kernel.o -M intel
readelf -W -s kernel.o		// -W tells not to truncate names
g++ -O0
g++ -S -masm=intel -o kernel.asm

Other useful stuff

TODO

  • Change #define to const where appropriate