Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Dec 1999 20:05:40 -0500 (EST)
From:      Kenneth Wayne Culver <culverk@wam.umd.edu>
To:        freebsd-current@freebsd.org
Subject:   rtc0
Message-ID:  <Pine.GSO.4.10.9912112000430.17115-100000@rac9.wam.umd.edu>

next in thread | raw e-mail | index | archive | help
I don't know if anyone else was having this problem, and I don't know that
this is a proper fix, but here goes:

For some reason rtc0 was not working, and I think it's because this
variable was not initialized, here is the patch:

--- clock.c.orig	Sat Dec 11 19:58:15 1999
+++ clock.c	Sat Dec 11 19:58:30 1999
@@ -132,7 +132,7 @@
 int	clkintr_pending;
 int	disable_rtc_set;	/* disable resettodr() if != 0 */
 volatile u_int	idelayed;
-int	statclock_disable;
+int	statclock_disable = 0;
 u_int	stat_imask = SWI_CLOCK_MASK;
 #ifndef TIMER_FREQ
 #define TIMER_FREQ   1193182


the patch should go in /usr/src/sys/i386/isa

=================================================================
| Kenneth Culver	      | FreeBSD: The best OS around.    |
| Unix Systems Administrator  | ICQ #: 24767726                 |
| and student at The          | AIM: AgRSkaterq	                |
| The University of Maryland, | Website: (Under Construction)   |
| College Park.		      | http://www.wam.umd.edu/~culverk/|
=================================================================



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.9912112000430.17115-100000>