Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Nov 1998 22:28:20 +0000
From:      Nicolas Souchu <nsouch@teaser.fr>
To:        Peter Jeremy <peter.jeremy@alcatel.com.au>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: LPIP losing clock interrupts - need new spl...() call
Message-ID:  <19981123222820.65307@breizh.prism.uvsq.fr>
In-Reply-To: <199807192325.JAA05650@gsms01.alcatel.com.au>; from Peter Jeremy on Mon, Jul 20, 1998 at 09:25:01AM %2B1000
References:  <199807192325.JAA05650@gsms01.alcatel.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <i386/isa/icu.h>
>   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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981123222820.65307>