[SOLVED] Bochs's SMP stimulation

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
nbdd0121
Member
Member
Posts: 60
Joined: Thu Jul 25, 2013 8:10 am

[SOLVED] Bochs's SMP stimulation

Post 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?
Last edited by nbdd0121 on Thu Aug 22, 2013 5:15 am, edited 3 times in total.
User avatar
xenos
Member
Member
Posts: 1121
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

Re: Bochs's SMP stimulation

Post 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.
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
nbdd0121
Member
Member
Posts: 60
Joined: Thu Jul 25, 2013 8:10 am

Re: Bochs's SMP stimulation

Post 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.
Post Reply