From owner-cvs-src@FreeBSD.ORG Thu May 19 21:20:43 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F67A16A4CE; Thu, 19 May 2005 21:20:43 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9FF643D94; Thu, 19 May 2005 21:20:42 +0000 (GMT) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j4JLKgUQ073710; Thu, 19 May 2005 21:20:42 GMT (envelope-from marius@repoman.freebsd.org) Received: (from marius@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j4JLKgW6073709; Thu, 19 May 2005 21:20:42 GMT (envelope-from marius) Message-Id: <200505192120.j4JLKgW6073709@repoman.freebsd.org> From: Marius Strobl Date: Thu, 19 May 2005 21:20:42 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/mc146818 mc146818.c mc146818var.h src/sys/sparc64/sparc64 rtc.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2005 21:20:43 -0000 marius 2005-05-19 21:20:42 UTC FreeBSD src repository Modified files: sys/dev/mc146818 mc146818.c mc146818var.h sys/sparc64/sparc64 rtc.c Log: o mc146818(4): - Add locking. - Account for if the MC146818_NO_CENT_ADJUST flag is set we don't need to check wheter year < POSIX_BASE_YEAR. - Add some comments about mapping the day of week from the range the generic clock code uses to the range the chip uses and which I meant to add in the initial version. - Minor clean-up, use __func__ instead of hardcoded function names in error strings. o in the rtc(4) front-end additionally: - Don't leak resources in case mc146818_attach() fails. - Account for ebus(4) defaulting to SYS_RES_MEMORY for the memory resources since ebus.c rev. 1.22. Revision Changes Path 1.3 +29 -17 src/sys/dev/mc146818/mc146818.c 1.3 +2 -0 src/sys/dev/mc146818/mc146818var.h 1.3 +22 -11 src/sys/sparc64/sparc64/rtc.c