From owner-freebsd-current Mon Dec 13 0:33:17 1999 Delivered-To: freebsd-current@freebsd.org Received: from mass.cdrom.com (castles516.castles.com [208.214.165.80]) by hub.freebsd.org (Postfix) with ESMTP id 9688114D76 for ; Mon, 13 Dec 1999 00:33:14 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Received: from mass.cdrom.com (localhost [127.0.0.1]) by mass.cdrom.com (8.9.3/8.9.3) with ESMTP id AAA06152; Mon, 13 Dec 1999 00:35:51 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Message-Id: <199912130835.AAA06152@mass.cdrom.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Kenneth Wayne Culver Cc: freebsd-current@FreeBSD.ORG Subject: Re: rtc0 In-reply-to: Your message of "Sat, 11 Dec 1999 20:17:01 EST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 13 Dec 1999 00:35:51 -0800 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG statclock_disable is set to 1 if you have the 0x20 flag set on your APM device. This should probably no longer be the default. > Oops, try this patch instead, again, it's done wrong, but I couldn't > figure out why statclock_disable was getting a value, and I don't have > time to figure it out. > > --- clock.c.orig Sat Dec 11 19:58:15 1999 > +++ clock.c Sat Dec 11 20:15:01 1999 > @@ -962,7 +962,7 @@ > int apic_8254_trial; > struct intrec *clkdesc; > #endif /* APIC_IO */ > - > + statclock_disable = 0; > if (statclock_disable) { > /* > * The stat interrupt mask is different without the > > > ================================================================= > | 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/| > ================================================================= > > On Sat, 11 Dec 1999, Kenneth Wayne Culver wrote: > > > 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 > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > -- \\ Give a man a fish, and you feed him for a day. \\ Mike Smith \\ Tell him he should learn how to fish himself, \\ msmith@freebsd.org \\ and he'll hate you for a lifetime. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message