From owner-freebsd-arch Sat Mar 24 1:27: 7 2001 Delivered-To: freebsd-arch@freebsd.org Received: from filk.iinet.net.au (syncopation-dns.iinet.net.au [203.59.24.29]) by hub.freebsd.org (Postfix) with SMTP id E33D737B71B for ; Sat, 24 Mar 2001 01:27:00 -0800 (PST) (envelope-from julian@elischer.org) Received: (qmail 19783 invoked by uid 666); 24 Mar 2001 09:28:36 -0000 Received: from i076-179.nv.iinet.net.au (HELO elischer.org) (203.59.76.179) by mail.m.iinet.net.au with SMTP; 24 Mar 2001 09:28:36 -0000 Message-ID: <3ABC685F.93B11487@elischer.org> Date: Sat, 24 Mar 2001 01:26:55 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Bruce Evans Cc: John Baldwin , Archie Cobbs , arch@FreeBSD.ORG Subject: Re: Critical Regions Round II References: Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Bruce Evans wrote: > > On Fri, 23 Mar 2001, Julian Elischer wrote: > > > John Baldwin wrote: > > > Archie said: > > > > Shouldn't these be, e.g., > > > > > > > > i386_disable_intr(), i386_enable_intr() > > > > > > > > and > > > > > > > > ia64_enable_intr(), ia64_disable_intr() > > > No, this code should not be used outside of sys/${MACHINE_ARCH}, which is > > > mostly how things were (aside from broken things like the joy driver) before > > > SMPng. > > > > I think the names should include either md_ or I386_ as a leadin so that people > > who are 'copying' to make their own drivers a made fully aware > > of what is going on. > > The MD names should simply be accessible in MI code. There are ^in > currently too many of them in . A few broken drivers > access MD interfaces directly: grepping for 'include.*i386/' gives: > > dev/ar/if_ar_isa.c:#include chip definitions should become machine independent. -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000-2001 ---> X_.---._/ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message