[SOLVED] Error on APIC Timer in Bochs

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] Error on APIC Timer in Bochs

Post by nbdd0121 »

I asked help for APIC Timer again... This problem puzzled me for several months and I still can't get fixed.
When I initialize my local apic timer to periodic mode, and set up the handler, I run it under VMware and it can work successfully. However, under bochs, the timer only triggered once. I use a loop to see if the Current Count Register changes. However, bochs panicked and gave me the message "APIC: R(curr timer count): delta < initial". I think I obeyed Intel's document, and Intel did not say a word about any fault possible in APIC Timer. The loop can run on VMWare. Is it my problem triggered an undefined behavior, or it is the problem cause by bochs? And if so, how can I fix this problem.
Last edited by nbdd0121 on Wed Aug 21, 2013 5:37 pm, edited 1 time in total.
stlw
Member
Member
Posts: 357
Joined: Fri Apr 04, 2008 6:43 am
Contact:

Re: Error on APIC Timer in Bochs

Post by stlw »

nbdd0121 wrote:I asked help for APIC Timer again... This problem puzzled me for several months and I still can't get fixed.
When I initialize my local apic timer to periodic mode, and set up the handler, I run it under VMware and it can work successfully. However, under bochs, the timer only triggered once. I use a loop to see if the Current Count Register changes. However, bochs panicked and gave me the message "APIC: R(curr timer count): delta < initial". I think I obeyed Intel's document, and Intel did not say a word about any fault possible in APIC Timer. The loop can run on VMWare. Is it my problem triggered an undefined behavior, or it is the problem cause by bochs? And if so, how can I fix this problem.
Which Bochs version do you use ?

Stanislav
User avatar
xenos
Member
Member
Posts: 1121
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

Re: Error on APIC Timer in Bochs

Post by xenos »

Reminds me to a very ancient bochs bug I once filed which has been fixed already years ago...

https://sourceforge.net/p/bochs/bugs/795/
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
nbdd0121
Member
Member
Posts: 60
Joined: Thu Jul 25, 2013 8:10 am

Re: Error on APIC Timer in Bochs

Post by nbdd0121 »

XenOS wrote:Reminds me to a very ancient bochs bug I once filed which has been fixed already years ago...

https://sourceforge.net/p/bochs/bugs/795/
Thank you, I just use apr-get to install bochs. now I compiled it and bug fixed.
Post Reply