diff options
author | 2025-01-23 10:41:10 +0800 | |
---|---|---|
committer | 2025-01-23 10:41:10 +0800 | |
commit | e6f77b7ea3e38c9853bee60b275f3f89d252a5b3 (patch) | |
tree | 80bfbabed9d4cbcf9fa62677f78b34279d7e2f87 /dbg-qemu | |
download | linux-0.11-master.tar.gz linux-0.11-master.zip |
Diffstat (limited to 'dbg-qemu')
-rwxr-xr-x | dbg-qemu | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dbg-qemu b/dbg-qemu new file mode 100755 index 0000000..700df7b --- /dev/null +++ b/dbg-qemu | |||
@@ -0,0 +1,12 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | export OSLAB_PATH=$(dirname `which $0`) | ||
4 | |||
5 | if [ "$1" == "debug" ]; then | ||
6 | debug="-s -S" | ||
7 | fi | ||
8 | |||
9 | qemu-system-i386 -m 16M -boot a \ | ||
10 | -drive file=$OSLAB_PATH/src/Image,format=raw,if=floppy \ | ||
11 | -drive file=$OSLAB_PATH/hdc-0.11.img,format=raw \ | ||
12 | $debug | ||