Page 1 of 1

Bochs smp debug [SOLVED]

Posted: Tue Jan 29, 2008 2:09 am
by alkot
Hi,
I'm trying to get my IPI on SMP configuration work and need to get bochs internal debugger stop at second AP, bochs successfully stopped at int 3, but that's all :( -- I cant get it to show anything about second CPU (regs, idt etc) Searched through bochs docs and cant find any command to show regs on certain cpu.
Can anyone help me solve this problem?

Posted: Tue Jan 29, 2008 2:22 am
by JamesM
Is your version of bochs definately compiled with the SMP option enabled?

Posted: Tue Jan 29, 2008 2:36 am
by alkot
Yes, compiled by myself from cvs with my config

cygwin config

Code: Select all

CC="gcc"
CXX="g++"
CFLAGS="-O3 -Wall -Wno-format -march=pentium"
CXXFLAGS="$CFLAGS"

export CC
export CXX
export CFLAGS
export CXXFLAGS

./configure --enable-all-optimizations \
            --enable-cpu-level=6 \
            --enable-sse=2 \
            --enable-pci \
            --enable-acpi \
            --enable-show-ips \
            --enable-smp \
            --enable-apic \
            --enable-debugger \
            --enable-disasm \
            --with-win32

Posted: Tue Jan 29, 2008 3:51 am
by alkot
Just found it in bochs source code -- you just need to execute in internal debugger

Code: Select all

set $cpu=<number of cpu you want to view>
Thanks alot :D