Browse Source

Added bochs

Stephen Downward 4 months ago
parent
commit
e9ab700de7
3 changed files with 61 additions and 0 deletions
  1. 3 0
      Makefile
  2. 57 0
      bochs/bochsrc
  3. 1 0
      bochs/debug.rc

+ 3 - 0
Makefile

@ -7,6 +7,9 @@ steveos2.bin: boot/bootsect.bin boot/secondstage.bin
7 7
run: steveos2.bin
8 8
	qemu-system-i386 -fda steveos2.bin
9 9
10
rbochs: steveos2.bin
11
	bochs -f bochs/bochsrc -rc bochs/debug.rc -q
12
10 13
debug: steveos2.bin
11 14
	qemu-system-i386 -fda steveos2.bin -S -s &
12 15
	gdb -ex \

+ 57 - 0
bochs/bochsrc

@ -0,0 +1,57 @@
1
# configuration file generated by Bochs
2
plugin_ctrl: unmapped=1, biosdev=1, speaker=1, extfpuirq=1, parallel=1, serial=1, iodebug=1
3
config_interface: textconfig
4
display_library: x
5
memory: host=32, guest=32
6
romimage: file="/usr/share/bochs/BIOS-bochs-latest", address=0x0, options=none
7
vgaromimage: file="/usr/share/bochs/VGABIOS-lgpl-latest"
8
boot: floppy
9
floppy_bootsig_check: disabled=0
10
floppya: type=1_44, 1_44="steveos2.bin", status=inserted, write_protected=0
11
# no floppyb
12
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
13
ata0-master: type=none
14
ata0-slave: type=none
15
ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15
16
ata1-master: type=none
17
ata1-slave: type=none
18
ata2: enabled=0
19
ata3: enabled=0
20
optromimage1: file=none
21
optromimage2: file=none
22
optromimage3: file=none
23
optromimage4: file=none
24
optramimage1: file=none
25
optramimage2: file=none
26
optramimage3: file=none
27
optramimage4: file=none
28
pci: enabled=1, chipset=i440fx
29
vga: extension=vbe, update_freq=5, realtime=1
30
cpu: count=1:1:1, ips=4000000, quantum=16, model=bx_generic, reset_on_triple_fault=1, cpuid_limit_winnt=0, ignore_bad_msrs=1, mwait_is_nop=0
31
cpuid: level=6, stepping=3, model=3, family=6, vendor_string="AuthenticAMD", brand_string="AMD Athlon(tm) processor"
32
cpuid: mmx=1, apic=xapic, simd=sse2, sse4a=0, misaligned_sse=0, sep=1, movbe=0, adx=0
33
cpuid: aes=0, sha=0, xsave=0, xsaveopt=0, avx_f16c=0, avx_fma=0, bmi=0, xop=0, fma4=0
34
cpuid: tbm=0, x86_64=1, 1g_pages=0, pcid=0, fsgsbase=0, smep=0, smap=0, mwait=1
35
print_timestamps: enabled=0
36
debugger_log: -
37
magic_break: enabled=0
38
port_e9_hack: enabled=0
39
private_colormap: enabled=0
40
clock: sync=none, time0=local, rtc_sync=0
41
# no cmosimage
42
# no loader
43
log: -
44
logprefix: %t%e%d
45
debug: action=ignore
46
info: action=report
47
error: action=report
48
panic: action=ask
49
keyboard: type=mf, serial_delay=250, paste_delay=100000, user_shortcut=none
50
mouse: type=ps2, enabled=0, toggle=ctrl+mbutton
51
speaker: enabled=1, mode=system
52
parport1: enabled=1, file=none
53
parport2: enabled=0
54
com1: enabled=1, mode=null
55
com2: enabled=0
56
com3: enabled=0
57
com4: enabled=0

+ 1 - 0
bochs/debug.rc

@ -0,0 +1 @@
1
c