From owner-freebsd-arch Fri Mar 16 19:48:10 2001 Delivered-To: freebsd-arch@freebsd.org Received: from smtp05.primenet.com (smtp05.primenet.com [206.165.6.135]) by hub.freebsd.org (Postfix) with ESMTP id 0D72337B718 for ; Fri, 16 Mar 2001 19:48:07 -0800 (PST) (envelope-from tlambert@usr05.primenet.com) Received: (from daemon@localhost) by smtp05.primenet.com (8.9.3/8.9.3) id UAA01564; Fri, 16 Mar 2001 20:42:28 -0700 (MST) Received: from usr05.primenet.com(206.165.6.205) via SMTP by smtp05.primenet.com, id smtpdAAAx1a4bd; Fri Mar 16 20:42:26 2001 Received: (from tlambert@localhost) by usr05.primenet.com (8.8.5/8.8.5) id UAA03669; Fri, 16 Mar 2001 20:47:58 -0700 (MST) From: Terry Lambert Message-Id: <200103170347.UAA03669@usr05.primenet.com> Subject: Re: man pages/more formal def enable_intr/disable_intr/restore_intr To: mjacob@feral.com Date: Sat, 17 Mar 2001 03:47:48 +0000 (GMT) Cc: tlambert@primenet.com (Terry Lambert), arch@FreeBSD.ORG In-Reply-To: from "Matthew Jacob" at Mar 16, 2001 04:59:30 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG MUCH better! > 1. Formal Definition > > disable_intr: Disables interrupts being dispatched to at least the calling > CPU. Returns an intrmask_t (should probably be an opaque type) > to be possibly used in a future call to restore_intr. -------------- which can be > restore_intr: Restores the state prior to the call to disable_intr such that > the calling CPU now can have interrupts dispatched to it. ------- - will now , if the state prior to the call had interrupts enabled. [ this assumes that there are no pareameters, and it's nestable, which may be better state explicitly; if it's like splx, then a different description might be better... ] > > enable_intr: Irrespective of any prior state, enables interrupts to be > dispatched to the calling CPU. > > (this narrows things down) Yep. > Does this help? If not, just leave it noted that I'm not satisfying you and > we'll move on. [ ... ] It's nearly perfect. It will keep someone in x86 land from shooting the Alpha people in the foot, and will keep the Alpha people from doing something that might require a big firefight in order to do a SPARC or some other port. It's exactly what the doctor ordered. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message