1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:08:12 +00:00
serenity/Kernel/Time
Tom d5bb5d109b Kernel: Fix HPET timer not firing in Bochs
* Change the register structures to use the volatile keyword explicitly
  on the register values. This avoids accidentally omitting it as any
  access will be guaranteed volatile.
* Don't assume we can read/write 64 bit value to the main counter and
  the comparator. Not all HPET implementations may support this. So,
  just use 32 bit words to access the registers. This ultimately works
  around a bug in Bochs 2.6.11 that loses 32 bits of a 64 bit write to
  a timer's comparator register (it internally writes one half and
  clears the Tn_VAL_SET_CNF bit, and then because it's cleared it
  fails to write the second half).
* Properly calculate the tick duration in calculate_ticks_in_nanoseconds
* As per specification, changing the frequency of one periodic timer
  requires a restart of all periodic timers as it requires the main
  counter to be reset.
2020-11-06 15:51:56 +01:00
..
APICTimer.cpp Kernel: Report more accurate ticks per second for APIC timer 2020-10-29 22:26:08 +01:00
APICTimer.h Kernel: Set up and calibrate APIC timer, and enable timer on all CPUs 2020-10-25 21:18:35 +01:00
HardwareTimer.h Kernel: Set up and calibrate APIC timer, and enable timer on all CPUs 2020-10-25 21:18:35 +01:00
HPET.cpp Kernel: Fix HPET timer not firing in Bochs 2020-11-06 15:51:56 +01:00
HPET.h Kernel: Fix HPET timer not firing in Bochs 2020-11-06 15:51:56 +01:00
HPETComparator.cpp Kernel: Fix HPET timer not firing in Bochs 2020-11-06 15:51:56 +01:00
HPETComparator.h Kernel: Set up and calibrate APIC timer, and enable timer on all CPUs 2020-10-25 21:18:35 +01:00
PIT.cpp Meta+Kernel: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
PIT.h Kernel: Set up and calibrate APIC timer, and enable timer on all CPUs 2020-10-25 21:18:35 +01:00
RTC.cpp Everywhere: Fix more typos 2020-10-03 12:36:49 +02:00
RTC.h Kernel: Set up and calibrate APIC timer, and enable timer on all CPUs 2020-10-25 21:18:35 +01:00
TimeManagement.cpp Kernel: Fix HPET timer not firing in Bochs 2020-11-06 15:51:56 +01:00
TimeManagement.h Kernel: Set up and calibrate APIC timer, and enable timer on all CPUs 2020-10-25 21:18:35 +01:00