From owner-freebsd-alpha Tue Jan 2 12: 7: 6 2001 From owner-freebsd-alpha@FreeBSD.ORG Tue Jan 2 12:07:01 2001 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id 17F5437B69B for ; Tue, 2 Jan 2001 12:06:49 -0800 (PST) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.1/8.9.3) with ESMTP id f02K6WG01735 for ; Tue, 2 Jan 2001 12:06:32 -0800 (PST) (envelope-from john@baldwin.cx) Resent-Message-Id: <200101022006.f02K6WG01735@meow.osd.bsdi.com> 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 Resent-Date: Fri, 17 Nov 2000 12:15:02 -0800 (PST) Resent-From: John Baldwin Resent-To: Andrew Gallatin Date: Tue, 02 Jan 2001 12:06:56 -0800 (PST) From: John Baldwin To: alpha@FreeBSD.org Subject: Disabling ints via IPL Resent-Sender: john@baldwin.cx Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Part VI: On 17-Nov-00 Andrew Gallatin wrote: > So the answer is "yes; but its not as bad I thought" because the > ithread is going to run fairly soon. > > It would seem that we don't need to go messing with the frame. All we > really need to do is to avoid dropping the IPL prior to running the > AST if we're on a PC164. And also never mask any interrupts if we're > on a PC164, since it seems the real problem is with unmasking them. We still have to mess with the frame to handle the case when we get an interrupt while we are in teh kernel and we don't call ast() on the way out. > It would also seem that we need to make sure we have enough room on > the kernel stack to store "recursive" interrupt contexts for each > platform, one frame for each irq that could possibly come in when we > drop the IPL to 0 in exception_return(). It won't be dropped to 0 unless a non-device I/O interrupt posts an ast and is returning to userland. > Drew -- 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 freebsd-alpha" in the body of the message