From owner-freebsd-hackers Thu May 21 22:01:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA02193 for freebsd-hackers-outgoing; Thu, 21 May 1998 22:01:36 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA02187 for ; Thu, 21 May 1998 22:01:30 -0700 (PDT) (envelope-from toor@dyson.iquest.net) Received: (from root@localhost) by dyson.iquest.net (8.8.8/8.8.8) id AAA02725; Fri, 22 May 1998 00:01:18 -0500 (EST) (envelope-from toor) Message-Id: <199805220501.AAA02725@dyson.iquest.net> Subject: Re: SMP resource locking In-Reply-To: <19980522114305.Z27201@freebie.lemis.com> from Greg Lehey at "May 22, 98 11:43:05 am" To: grog@lemis.com (Greg Lehey) Date: Fri, 22 May 1998 00:01:18 -0500 (EST) Cc: hackers@FreeBSD.ORG From: "John S. Dyson" Reply-To: dyson@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Greg Lehey said: > I haven't paid much attention to SMP problems yet, but I need to now. > Can somebody point me to functions to ensure single-thread passing of > critical sections? In a UP environment I'd use splhigh (), but that's > obviously not enough for SMP. > For now, splhigh in a normal driver context will work. That is of course broken, but it will work fine. In the future, it won't. -- John | Never try to teach a pig to sing, dyson@freebsd.org | it just makes you look stupid, jdyson@nc.com | and it irritates the pig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message