Page 1 of 1

[SOLVED] Error on APIC Timer in Bochs

Posted: Fri Aug 16, 2013 11:09 pm
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.

Re: Error on APIC Timer in Bochs

Posted: Sat Aug 17, 2013 5:44 am
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

Re: Error on APIC Timer in Bochs

Posted: Sat Aug 17, 2013 8:38 am
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/

Re: Error on APIC Timer in Bochs

Posted: Wed Aug 21, 2013 5:39 pm
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.