From 73cd08fa510b17c8f5d145e912b75a037402a591 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 10 Jan 2023 11:28:23 +0200 Subject: [PATCH] Kernel: Add script to run bochs debugger --- .gitignore | 4 +++- bochs.sh | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100755 bochs.sh diff --git a/.gitignore b/.gitignore index 88efe536..11fba1f6 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,6 @@ isodir sysroot .vscode/ .idea/ -fonts/ \ No newline at end of file +fonts/ +bochsrc +bx_enh_dbg.ini \ No newline at end of file diff --git a/bochs.sh b/bochs.sh new file mode 100755 index 00000000..cf0549ab --- /dev/null +++ b/bochs.sh @@ -0,0 +1,15 @@ +#!/bin/sh +set -e +. ./iso.sh + +cat > bochsrc << EOF +ata0-master: type=cdrom, path=banan-os.iso, status=inserted +boot: cdrom +clock: sync=realtime, time0=local +display_library: x, options="gui_debug" +magic_break: enabled=1 +megs: 128 +com1: enabled=1, mode=term, dev=/dev/pts/2 +EOF + +bochs -q