HPET Comparator seems to not work

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
ShukantPal
Posts: 23
Joined: Tue Dec 12, 2017 6:51 am
Freenode IRC: XtremeCoder

HPET Comparator seems to not work

Post by ShukantPal »

Working on my HPET kernel driver, I found that the comparator wasn't responding to the value I put in it. To would generate an interrupt after about 10000 to 20000 ticks every time. Everything else works - disabling & enabling interrupts, monotonic counter, interrupt routing through IOAPIC (LegacyIRQ Replacement used) too.

Check out this : https://github.com/SukantPal/Silcos-Kernel

Files required:

ExecutionManager > Timer > HPET.cpp
HAL > ACPI > HPET.cpp

What could be the cause of the comparator not responding to my values? (Please check how I grouped the registered in structs and union in the header Interface/Executable/Timer/HPET.hpp)
Post Reply