to debug an issue I'm having with SMP (faulting when setting PM bit in CR0 in RM after STARTUP IPI), I decided to switch over from qemu to bochs for the sake of its great debugging features.
Unfortunately, the precompiled bochs version that ships with my linux distro (Ubuntu 10.10) has no support for ACPI which is required for my kernel to run (doing LAPIC discovery etc.), so I decided to compile bochs by myself, loaded the source from SVN and compiled with the following configuration on my X86_64-linux-unknown-gnu machine:
Code: Select all
./configure --enable-smp \
--enable-cpu-level=6 \
--enable-acpi \
--enable-x86-64 \
--enable-pci \
--enable-vmx \
--enable-debugger \
--enable-disasm \
--enable-debugger-gui \
--enable-logging \
--enable-vbe \
--enable-fpu \
--enable-3dnow \
--enable-sb16=dummy \
--enable-cdrom \
--enable-x86-debugger \
--enable-iodebug \
--disable-plugins \
--disable-docbook \
--enable-magic-breakpoint \
--with-x --with-x11 --with-term
Code: Select all
megs: 32
romimage: file=/usr/local/share/bochs/BIOS-bochs-latest, address=0xe0000
vgaromimage: file=/usr/local/share/bochs/VGABIOS-lgpl-latest
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata0-master: type=cdrom, path="boot.iso", status=inserted
boot: cdrom
log: bochsout.txt
mouse: enabled=0
clock: sync=realtime
Code: Select all
Next at t=0
(0) [0x00000000fffffff0] f000:fff0 (unk. ctxt): (invalid) ; ffff