1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:17:45 +00:00

Kernel: Fix HPET timer structure layout

Only the first 3 timers have a reserved field, the 29 other timers
do not have a reserved field.

Fixes #5530
This commit is contained in:
Tom 2021-02-26 10:59:37 -07:00 committed by Andreas Kling
parent 85ea60b7f1
commit af22204488
2 changed files with 33 additions and 17 deletions

View file

@ -72,7 +72,7 @@ private:
void global_disable();
void global_enable();
bool is_periodic_capable(u8 comparator_number) const;
bool is_periodic_capable(u8 comparator_number);
void set_comparators_to_optimal_interrupt_state(size_t timers_count);
u64 calculate_ticks_in_nanoseconds() const;