diff --git a/run.sh b/run.sh index 7582ae9..15e8a7f 100755 --- a/run.sh +++ b/run.sh @@ -3,10 +3,15 @@ EMUFLAGS="-no-reboot -m 256M -cdrom build/noxos.iso -chardev stdio,id=log,logfile=noxos.log -serial chardev:log" emulate() { - echo "<=====| Emulating with disabled debug mode |=====>" + echo "<=====| Emulating |=====>" qemu-system-x86_64 $EMUFLAGS } +emulate_uefi() { + echo "<=====| Emulating in UEFI mode |=====>" + qemu-system-x86_64 -bios /usr/share/ovmf/x64/OVMF.fd $EMUFLAGS +} + # qemu will wait for gdb to connect, before booting emulate_debug() { echo "<=====| Emulating in debug mode |=====>" @@ -17,6 +22,9 @@ case $1 in "debug") emulate_debug ;; + "uefi") + emulate_uefi + ;; *) emulate ;;