Module Name: src Committed By: thorpej Date: Sun Dec 31 22:06:41 UTC 2023
Modified Files: src/sys/dev/goldfish: gfrtc.c Log Message: gfrtc_settime(): Write the low half of the time valueinto the RTC_TIME_LOW register, not the RTC_TIME_HIGH register. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/dev/goldfish/gfrtc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/goldfish/gfrtc.c diff -u src/sys/dev/goldfish/gfrtc.c:1.1 src/sys/dev/goldfish/gfrtc.c:1.2 --- src/sys/dev/goldfish/gfrtc.c:1.1 Fri Dec 29 23:31:44 2023 +++ src/sys/dev/goldfish/gfrtc.c Sun Dec 31 22:06:41 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: gfrtc.c,v 1.1 2023/12/29 23:31:44 thorpej Exp $ */ +/* $NetBSD: gfrtc.c,v 1.2 2023/12/31 22:06:41 thorpej Exp $ */ /*- * Copyright (c) 2023 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: gfrtc.c,v 1.1 2023/12/29 23:31:44 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: gfrtc.c,v 1.2 2023/12/31 22:06:41 thorpej Exp $"); #include <sys/param.h> @@ -78,7 +78,7 @@ gfrtc_settime(struct todr_chip_handle *c uint32_t lo = nsec; GOLDFISH_RTC_WRITE(sc, GOLDFISH_RTC_TIME_HIGH, hi); - GOLDFISH_RTC_WRITE(sc, GOLDFISH_RTC_TIME_HIGH, lo); + GOLDFISH_RTC_WRITE(sc, GOLDFISH_RTC_TIME_LOW, lo); return 0; }