mirror of
https://github.com/RGBCube/serenity
synced 2025-10-28 18:12:33 +00:00
The fact that current_time can "fail" makes its use a bit awkward. All callers in the Kernel are trusted besides syscalls, so assert that they never get there, and make sure all current callers perform validation of the clock_id with TimeManagement::is_valid_clock_id(). I have fuzzed this change locally for a bit to make sure I didn't miss any obvious regression. |
||
|---|---|---|
| .. | ||
| APICTimer.cpp | ||
| APICTimer.h | ||
| HardwareTimer.h | ||
| HPET.cpp | ||
| HPET.h | ||
| HPETComparator.cpp | ||
| HPETComparator.h | ||
| PIT.cpp | ||
| PIT.h | ||
| RTC.cpp | ||
| RTC.h | ||
| TimeManagement.cpp | ||
| TimeManagement.h | ||