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?
[SOLVED] Bochs's SMP stimulation
[SOLVED] Bochs's SMP stimulation
Last edited by nbdd0121 on Thu Aug 22, 2013 5:15 am, edited 3 times in total.
- xenos
- Member
- Posts: 1121
- Joined: Thu Aug 11, 2005 11:00 pm
- Libera.chat IRC: xenos1984
- Location: Tartu, Estonia
- Contact:
Re: Bochs's SMP stimulation
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
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.