Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 1998 18:30:20 -0800
From:      Mike Smith <mike@smith.net.au>
To:        Greg Lehey <grog@lemis.com>
Cc:        Mike Smith <mike@smith.net.au>, current@FreeBSD.ORG
Subject:   Re: trap 12 with interrupts disabled 
Message-ID:  <199812220230.SAA02237@dingo.cdrom.com>
In-Reply-To: Your message of "Tue, 22 Dec 1998 12:58:58 %2B1030." <19981222125858.X85005@freebie.lemis.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> On Monday, 21 December 1998 at 18:25:33 -0800, Mike Smith wrote:
> >>>>> pid 281 (Xaccel): trap 12 with interupts disabled
> >>>>
> >>>> Yes, I've noticed this one too.  It seems to have crept in relatively
> >>>> recently, and strangely seems not to cause any problems.
> >>>
> >>> The diagnostic just warns of a bad situation (Xaccel has turned off
> >>> interrupts for some reason, and then pagefaulted), it doesn't mention
> >>> that it has in fact turned interrupts back on so that the pagefault can
> >>> be safely completed.
> >>
> >> If my page fault fails because I've blocked the interrupt, I'd expect
> >> some serious damage to happen to the process environment.n
> >
> > Usually you're lucky and something else turns them on unconditionally.
> > This test simply makes damn sure that if you take a fault interrupts
> > get turned back on.
> 
> Ah.  You mean we don't block the fault, just other interrupts?  That
> makes more sense.

Yes; traps aren't interrupts.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



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