From owner-freebsd-hackers Mon Nov 23 12:38:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA13520 for freebsd-hackers-outgoing; Mon, 23 Nov 1998 12:38:00 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from reliam.teaser.fr (reliam.teaser.fr [194.51.80.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA13510 for ; Mon, 23 Nov 1998 12:37:55 -0800 (PST) (envelope-from son@teaser.fr) Received: from teaser.fr (ppp1087-ft.teaser.fr [194.206.156.40]) by reliam.teaser.fr (8.9.1a/8.9.1a) with ESMTP id VAA02360; Mon, 23 Nov 1998 21:37:28 +0100 (MET) Received: (from son@localhost) by teaser.fr (8.9.1/8.8.5) id WAA00688; Mon, 23 Nov 1998 22:28:20 GMT Message-ID: <19981123222820.65307@breizh.prism.uvsq.fr> Date: Mon, 23 Nov 1998 22:28:20 +0000 From: Nicolas Souchu To: Peter Jeremy Cc: hackers@FreeBSD.ORG Subject: Re: LPIP losing clock interrupts - need new spl...() call References: <199807192325.JAA05650@gsms01.alcatel.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199807192325.JAA05650@gsms01.alcatel.com.au>; from Peter Jeremy on Mon, Jul 20, 1998 at 09:25:01AM +1000 X-Operating-System: FreeBSD breizh 3.0-CURRENT FreeBSD 3.0-CURRENT Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jul 20, 1998 at 09:25:01AM +1000, Peter Jeremy wrote: > >The solution (from my point of view) is a new spllpip() (or maybe >splplip()). Technically, this is easy, but I have a number of >stylistic questions: >- Should it go in i386/include/spl.h (since it's an spl()) or > i386/isa/lpt.c (the only place it's used)? I tend towards the > former. >- How should a mask of `all 1's except the hardclock() and statclock() > IRQs' be declared? Some options include: > >a) GENSPL(spllpip, cpl |= SWI_MASK | 0xfefe) > >b) #include > GENSPL(spllpip, cpl |= SWI_MASK | (HWI_MASK & ~(IRQ0 | IRQ8))) > >c) In an include file somewhere: > #define HWI_CLOCK 0 > #define HWI_STATCLOCK 8 > In i386/include/spl.h: > GENSPL(spllpip, cpl |= SWI_MASK | (HWI_MASK & ~((1 << HWI_CLOCK) | (1 << HWI_STATCLOCK)))) > And update i386/isa/clock.c to use the new macros. > >BTW, as far as I can tell, none of IF_DROP(), IF_ENQUEUE(), >IF_QFULL(), bpf_tap(), m_devget(), m_freem() or schednetisr() must be >called at non-zero spl's. Can anyone confirm this? > I could not find any reply to this mail in my archives. Did you send a PR? I'm about to look at ECP+DMA with a basic master/slave protocol. Did you do some work or do you have any idea about the suject? >Peter >-- >Peter Jeremy (VK2PJ) peter.jeremy@alcatel.com.au >Alcatel Australia Limited >41 Mandible St Phone: +61 2 9690 5019 >ALEXANDRIA NSW 2015 Fax: +61 2 9690 5247 > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-hackers" in the body of the message > -- nsouch@teaser.fr / nsouch@freebsd.org FreeBSD - Turning PCs into workstations - http://www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message