From bbe1d7e2397781c353fa33f71d3b320207606a52 Mon Sep 17 00:00:00 2001 From: Liav A Date: Sat, 6 Mar 2021 10:48:56 +0200 Subject: Revert "Kernel: Fix HPET timer structure layout" This reverts commit af2220448834fb0bff5132bf68104719819862ce. According to the HPET specification, each theoretical comparator takes 32 bytes in the MMIO space. Although I hardly believe that any system will implement all 32 comparators, in practice if a machine happens to have more than 3 comparators, we need to address the comparators correctly if we want to use them. --- Kernel/Time/HPET.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/Time/HPET.h') diff --git a/Kernel/Time/HPET.h b/Kernel/Time/HPET.h index a2d04dd774..8047c4d99e 100644 --- a/Kernel/Time/HPET.h +++ b/Kernel/Time/HPET.h @@ -75,7 +75,7 @@ private: void global_disable(); void global_enable(); - bool is_periodic_capable(u8 comparator_number); + bool is_periodic_capable(u8 comparator_number) const; void set_comparators_to_optimal_interrupt_state(size_t timers_count); u64 nanoseconds_to_raw_ticks() const; -- cgit v1.2.3