Page 1 of 1

[SOLVED] Bochs's SMP stimulation

Posted: Wed Aug 21, 2013 11:08 pm
by nbdd0121
I used bochs for debugging in SMP situation. The initialization of AP was OK, but the BSP will not receive any interrupt from outside.
However, when I throw my OS to VMware, the OS ran perfectly. Four cores can both have a running process on it, and the interrupts from mouse and keyboard worked fine as well. What is wrong with my code/bochs?

Re: Bochs's SMP stimulation

Posted: Thu Aug 22, 2013 1:34 am
by xenos
Unfortunately my crystal ball is broken, so the Bochs log, the Bochs debugger and your source code are at the moment a better source of information what's going wrong in your SMP implementation.

Re: Bochs's SMP stimulation

Posted: Thu Aug 22, 2013 5:15 am
by nbdd0121
The problem fixed. 'cuz Bochs invoke PIT fastly but excute slowly, my code auto sets the APIC's timer initial count registers to a small number. When I hard code the number, the issue fixed.