add `make bochs`

This commit is contained in:
Quinten Kock 2020-12-04 04:42:32 +01:00
parent 916b8d053b
commit c5464e75ae
2 changed files with 23 additions and 1 deletions

View File

@ -4,7 +4,7 @@ ARCH ?= x86_64
KERNEL_HDD = kornos.img
.PHONY: clean all $(COMPONENTS)
.PHONY: clean all $(COMPONENTS) run bochs
.DEFAULT_GOAL = $(KERNEL_HDD)
$(COMPONENTS):
@ -19,6 +19,11 @@ run: $(KERNEL_HDD)
-enable-kvm \
-debugcon stdio
bochs: $(KERNEL_HDD) ext/bochsrc
rm -f $(KERNEL_HDD).lock
bochs -qf ext/bochsrc
rm bochsout.txt
ext/limine/limine-install:
$(MAKE) -C ext/limine/ limine-install

17
ext/bochsrc Normal file
View File

@ -0,0 +1,17 @@
cpu: count=2, reset_on_triple_fault=0
display_library: x, options="gui_debug"
megs: 512
clock: sync=realtime, time0=local
ata0-master: type=disk, path="kornos.img", mode=flat
boot: c
log: ./bochsout.txt
mouse: enabled=0
magic_break: enabled=1