-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·33 lines (30 loc) · 885 Bytes
/
run.sh
File metadata and controls
executable file
·33 lines (30 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# Check if debug mode is requested
DEBUG=false
if [[ "$1" == "--debug" || "$1" == "-d" ]]; then
DEBUG=true
fi
if [ "$DEBUG" = true ]; then
echo "Starting QEMU in debug mode..."
echo "In another terminal, run: gdb ./ViOS64Bit/bin/kernel.elf"
echo "Then in GDB, type: target remote localhost:1234"
echo "Then: continue"
echo ""
qemu-system-x86_64 \
-machine pc \
-drive file=./bin/os.img,format=raw,if=ide \
-m 4G \
-cpu Skylake-Server,tsc-frequency=3000000000 \
-bios /opt/homebrew/share/qemu/RELEASEX64_OVMF.fd \
-serial stdio \
-s -S
else
qemu-system-x86_64 \
-machine pc \
-drive file=./bin/os.img,format=raw,if=ide \
-m 4G \
-cpu Skylake-Server,tsc-frequency=3000000000 \
-bios /opt/homebrew/share/qemu/RELEASEX64_OVMF.fd \
-serial stdio \
-vga std
fi