export CROSS_COMPILE = i686-elf-
export AS = yasm
export CC = gcc
-export QEMU = qemu-system-i386 -monitor stdio
+export QEMU = qemu-system-i386 -monitor stdio -cpu pentium2
export GIT_REV = $(shell git describe --long HEAD)
export REAL_CC = $(CROSS_COMPILE)$(CC)
export CFLAGS
default: kernel/kernel.elf bootloader
all: default boot/x86/disk.img
run: all
- $(QEMU) boot/x86/disk.img
+ $(QEMU) -drive file=boot/x86/disk.img,format=raw,throttling.iops-total=100
debug: all
- $(QEMU) -s -S boot/x86/disk.img
+ $(QEMU) -s -S -drive file=boot/x86/disk.img,format=raw,throttling.iops-total=100
kernel/kernel.elf:
$(MAKE) -C kernel