diff options
author | Ian Moffett <ian@osmora.org> | 2025-06-25 20:38:09 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-06-25 20:38:09 -0400 |
commit | 6b8e1e161069e8d1722a55442c081be2f30189a5 (patch) | |
tree | 50d177e18f3aa1308399c42fec488ddb7ed18b37 | |
parent | e4a3671633f2b7783123c5456aa0ab3c27d69cc4 (diff) |
kernel/amd64: mc1468xx: Add 2000 to the year
The year register of the RTC does not keep track of the century so
default to 2000 until we figure out the non-standard century register.
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | sys/arch/amd64/isa/mc1468.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/arch/amd64/isa/mc1468.c b/sys/arch/amd64/isa/mc1468.c index 531751b..5e8b32f 100644 --- a/sys/arch/amd64/isa/mc1468.c +++ b/sys/arch/amd64/isa/mc1468.c @@ -174,6 +174,7 @@ mc1468_get_date(struct date *dp) date_cur.hour = ((date_cur.hour & 0x7F) + 12) % 24; } + date_cur.year += 2000; *dp = date_cur; return 0; } |