From 286e27ef401c09e1e13e355ac6f0f54540efa741 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 17 Oct 2018 16:58:35 +0200 Subject: [PATCH] Allow running in QEMU with "./run q" The kernel doesn't run in QEMU right now and I don't know why. --- Kernel/run | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Kernel/run b/Kernel/run index f3454dbf4e..688f381619 100755 --- a/Kernel/run +++ b/Kernel/run @@ -1,5 +1,8 @@ #!/bin/sh -bochs -q -f .bochsrc +if [ "$1" = "q" ]; then + qemu-system-i386 -drive format=raw,file=.floppy-image,if=floppy -drive format=raw,file=_fs_contents #$@ +else + bochs -q -f .bochsrc +fi -#qemu-system-i386 -drive format=raw,file=.floppy-image,if=floppy -drive format=raw,file=_fs_contents $@