diff options
author | Marvin Borner | 2019-11-12 22:16:33 +0100 |
---|---|---|
committer | Marvin Borner | 2019-11-12 22:16:33 +0100 |
commit | f2139493e566057cc7b03c77cd1bf7ed865f292d (patch) | |
tree | 9cac8c86aac6478f504a253178de316ea7ffa929 /src/kernel/cmos | |
parent | 765559cab48a27be66f40f1b081c79fe32bee8c7 (diff) |
Began high precision timer (HPET) implementation
Diffstat (limited to 'src/kernel/cmos')
-rw-r--r-- | src/kernel/cmos/rtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/cmos/rtc.c b/src/kernel/cmos/rtc.c index ed7c494..20e1b50 100644 --- a/src/kernel/cmos/rtc.c +++ b/src/kernel/cmos/rtc.c @@ -37,7 +37,7 @@ void read_rtc() { day = get_rtc_register(0x07); month = get_rtc_register(0x08); year = get_rtc_register(0x09); - century = get_rtc_register(facp->century); + century = get_rtc_register(fadt->century); // Try until the values are the same (fix for RTC updates) do { @@ -56,7 +56,7 @@ void read_rtc() { day = get_rtc_register(0x07); month = get_rtc_register(0x08); year = get_rtc_register(0x09); - century = get_rtc_register(facp->century); + century = get_rtc_register(fadt->century); } while ((last_second != second) || (last_minute != minute) || (last_hour != hour) || (last_day != day) || (last_month != month) || (last_year != year) || (last_century != century)); |