From 6b8e1e161069e8d1722a55442c081be2f30189a5 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 25 Jun 2025 20:38:09 -0400 Subject: 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 --- sys/arch/amd64/isa/mc1468.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys') 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; } -- cgit v1.2.3