Kernel: Add script to run bochs debugger

This commit is contained in:
Bananymous 2023-01-10 11:28:23 +02:00
parent 5106552bfd
commit 73cd08fa51
2 changed files with 18 additions and 1 deletions

4
.gitignore vendored
View File

@ -3,4 +3,6 @@ isodir
sysroot sysroot
.vscode/ .vscode/
.idea/ .idea/
fonts/ fonts/
bochsrc
bx_enh_dbg.ini

15
bochs.sh Executable file
View File

@ -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