tsc: initial implementation of timekeeper source

This commit is contained in:
Matheus
2024-09-29 16:30:08 -03:00
parent 0fff338065
commit c3eef02d50
5 changed files with 83 additions and 4 deletions
+1
View File
@@ -152,6 +152,7 @@ static timekeeper_source_info_t *hpet_init(void) {
}
// ran in at least IPL_DPC
time_t hpet_ticks(timekeeper_source_info_t *) {
if (hpet_private.type == TYPE_64BIT) {
return read64(HPET_REG_COUNTER);