summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-06-09 21:40:05 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-06-09 21:40:05 +0200
commit0be74eeee017b7116126e258b97df5a857dac4ab (patch)
tree5f1e1b5ac76e74214abb111ab2a0dac64ef2ecef /src/Makefile
parent2a83f352967435beb05582e5119b9e9e0cfefe3a (diff)
downloadabaos-0be74eeee017b7116126e258b97df5a857dac4ab.tar.gz
abaos-0be74eeee017b7116126e258b97df5a857dac4ab.tar.bz2
tried to probe disk geometry with mixed success (emulated FDD mode
on USB not working). Code in stage1 gets too complex to fit 512 bytes, so we most likely must load stage2 with a simple algorithm (maybe 8 sectors every bios 13h/2h function is able to deliver). Then we load the kernel in a second, more complex loading step
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 0fbf658..55f8975 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -97,6 +97,10 @@ setjmp.o: setjmp.asm
clean:
-rm -f boot.bin kernel.bin kernel.sym kernel.elf image.bin magic.bin *.o boot.map image.tmp
+run-qemu-hd: image.bin
+ qemu-system-i386 -net nic,model=ne2k_pci -d guest_errors -m 32 -drive "file=image.bin,if=ide,format=raw" \
+ -serial file:serial.log
+
run-qemu: image.bin
qemu-system-i386 -net nic,model=ne2k_pci -d guest_errors -m 32 -drive "file=image.bin,if=floppy,format=raw" \
-serial file:serial.log