Skip to content
Browse files

Add some stuff to support running in Bochs too.

  • Loading branch information...
1 parent cf139bb commit becd870e46acb0bbe93690f1e14a3761d26d0480 @alexrp alexrp committed Jul 29, 2012
Showing with 23 additions and 1 deletion.
  1. +13 −0 bochsrc
  2. +10 −1 wscript
View
13 bochsrc
@@ -0,0 +1,13 @@
+romimage: file=/usr/share/bochs/BIOS-bochs-latest
+megs: 1024
+ata1-slave: type=cdrom, path="build/exocore.iso", status=inserted
+boot: cdrom
+cpu: count=1, reset_on_triple_fault=0
+magic_break: enabled=1
+debug_symbols: file=build/exocore.bin
+#vga: extension=vbe
+panic: action=report
+error: action=report
+info: action=report
+#debug: action=report
+gdbstub: enabled=1, port=1234, text_base=0, data_base=0, bss_base=0
View
11 wscript
@@ -290,8 +290,17 @@ def dist(dst):
def qemu(ctx):
'''runs the kernel in QEMU with GDB server at localhost:1234'''
- _run_shell(OUT, ctx, 'qemu -monitor stdio -S -s -cdrom {0}'.format('exocore.iso'))
+ _run_shell(TOP, ctx, 'qemu -monitor stdio -S -s -cdrom {0}'.format(os.path.join(OUT, 'exocore.iso')))
class QEMUContext(Build.BuildContext):
cmd = 'qemu'
fun = 'qemu'
+
+def bochs(ctx):
+ '''runs the kernel in Bochs with GDB server at localhost:1234'''
+
+ _run_shell(TOP, ctx, 'bochs')
+
+class BochsContext(Build.BuildContext):
+ cmd = 'bochs'
+ fun = 'bochs'

0 comments on commit becd870

Please sign in to comment.
Something went wrong with that request. Please try again.