[SOLVED] Bochs and HPET: How to detect ?
Posted: Thu Mar 29, 2018 3:03 am
Hi,
I've had an HPET driver working correctly for quite some time on Qemu. Before, it was not detecting any HPET in Bochs, but now Bochs added an ACPI Table for HPET and my OS detect that there is support for HPET. However, I'm having issues from Bochs telling me that I read (or write) to invalid HPET Register.
Here is what I'm doing to Detect HPET support for my OS:
Is my HPET detection wrong ?
I was thinking to detect the number of timers, but Bochs tell me there are two counters...
Thanks
I've had an HPET driver working correctly for quite some time on Qemu. Before, it was not detecting any HPET in Bochs, but now Bochs added an ACPI Table for HPET and my OS detect that there is support for HPET. However, I'm having issues from Bochs telling me that I read (or write) to invalid HPET Register.
Here is what I'm doing to Detect HPET support for my OS:
- Check if the Table is here
- Check if possible to handle legacy replacement mode
- Check if the main counter is 64 bits
- Check if timer #0 is 64-bits
Is there any way to do a better detection so that step 4. does not fail ?Unsupported HPET read at address 0x0000fed00100
Is my HPET detection wrong ?
I was thinking to detect the number of timers, but Bochs tell me there are two counters...
Thanks