A toy operating system written in C.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
debug_flags=()
|
|
if [[ ${1:-} == '--debug' ]] || [[ ${1:-} == '-d' ]]; then
|
|
debug_flags+=(-s -S)
|
|
fi
|
|
|
|
qemu-system-x86_64 \
|
|
"${debug_flags[@]}" \
|
|
-monitor stdio \
|
|
-drive file="build/os.img",format=raw,if=ide \
|
|
-no-reboot \
|
|
-d int
|
|
|