Subject: Re: APM resume weirdness
To: None <sommerfeld@orchard.arlington.ma.us>
From: John Kohl <jtk@kolvir.arlington.ma.us>
List: port-i386
Date: 05/30/2000 11:49:12
>>>>> "Bill" == Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us> writes:

>> I think the APM resume code should run at splhigh().  Comments?

Bill> Hmm.  Can we do a splhigh() before suspend, splx() on resume, just so
Bill> an interrupt doesn't sneak in before the power hooks have a chance to
Bill> run?

Alas, some APM BIOSes are lame and don't work right unless interrupts
are enabled when the BIOS is called.  So splhigh() (== cli) isn't going
to work.  We'd need to use whatever splfoo() blocks all interrupt
processing, but not interrupt delivery (splstatclock()? splclock()?).

-- 
==John Kohl <jtk@kolvir.arlington.ma.us>, <john_kohl@alum.mit.edu>
Home page: <http://people.ne.mediaone.net/jtk/>
Bicycling and Skiing to keep fit.