From owner-cvs-all Thu Oct 5 19:36:55 2000 Delivered-To: cvs-all@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id DC79237B503; Thu, 5 Oct 2000 19:36:50 -0700 (PDT) Received: from foo.osd.bsdi.com (root@foo.osd.bsdi.com [204.216.28.137]) by pike.osd.bsdi.com (8.11.0/8.9.3) with ESMTP id e962adi25805; Thu, 5 Oct 2000 19:36:39 -0700 (PDT) (envelope-from jhb@foo.osd.bsdi.com) Received: (from jhb@localhost) by foo.osd.bsdi.com (8.11.0/8.11.0) id e962YEJ43475; Thu, 5 Oct 2000 19:34:14 -0700 (PDT) (envelope-from jhb) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200010060220.TAA72199@freefall.freebsd.org> Date: Thu, 05 Oct 2000 19:34:14 -0700 (PDT) Organization: BSD, Inc. From: John Baldwin To: cvs-committers@FreeBSD.org Subject: RE: cvs commit: src/sys/alpha/alpha trap.c src/sys/alpha/include Cc: cvs-all@FreeBSD.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 06-Oct-00 John Baldwin wrote: > jhb 2000/10/05 19:20:22 PDT > > Modified files: > sys/alpha/alpha trap.c > sys/alpha/include cpu.h globals.h > sys/i386/i386 genassym.c globals.s machdep.c > mp_machdep.c swtch.s trap.c > sys/i386/include asnames.h cpu.h globaldata.h globals.h > lock.h mutex.h smptests.h > sys/i386/isa apic_vector.s clock.c icu_vector.s > sys/kern kern_clock.c kern_synch.c > sys/sys proc.h > Log: > - Change fast interrupts on x86 to push a full interrupt frame and to > return through doreti to handle ast's. This is necessary for the > clock interrupts to work properly. > - Change the clock interrupts on the x86 to be fast instead of threaded. > This is needed because both hardclock() and statclock() need to run in > the context of the current process, not in a separate thread context. ... This should fix most (if not all) of the micruptime() problems reported after the SMPng commit. The P_*PEND trick for delaying signal delivery during hardclock() was an idea that I gleaned from cp, but don't blame him if I screwed up the implementation or misunderstood him. The changes to make statclock be fast were almost committed with the original SMPng commit instead of the prevproc hack, albeit in a slightly different form and were submitted by jake. Nevertheless, they significantly reduced the work to get statclock working as most of the code I take straight from jake's patch. > Submitted by: jakeb (making statclock safe in a fast interrupt) ^^^^^ Grr, should be just 'jake'. IRC nicks != freefall logins. :-P > Submitted by: cp (concept of delaying signals until ast()) -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.Baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message