summaryrefslogtreecommitdiff
path: root/debug.sh
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2021-03-17 12:38:27 +0000
committerAda Christine <adachristine18@gmail.com>2021-03-17 12:38:27 +0000
commit53ca88735db910c746d6190cca39fcd70d66b650 (patch)
treeab0da3a88009f0ddf0e6e2634d0962c364393203 /debug.sh
initial commit
Diffstat (limited to 'debug.sh')
-rwxr-xr-xdebug.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/debug.sh b/debug.sh
new file mode 100755
index 0000000..1ce95b7
--- /dev/null
+++ b/debug.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+make -C loader &&
+make -C kernel &&
+
+./image.sh &&
+
+qemu-system-x86_64 -cpu qemu64 \
+ -drive if=pflash,format=raw,unit=0,file=/usr/share/ovmf/x64/OVMF_CODE.fd,readonly=on \
+ -drive if=pflash,format=raw,unit=1,file=OVMF_VARS.fd \
+ -net none -drive file=uefi.img,if=ide -monitor stdio -vga none
+