Article View: comp.os.os2.programmer
Article #3080Re: Executing HLT in an application
From: Creed Erickson
Date: Sun, 22 Nov 1992 07:28
Date: Sun, 22 Nov 1992 07:28
25 lines
1819 bytes
1819 bytes
In article <JsgkuB1w165w@salzo.Cary.NC.US> David Burton, dburton@salzo.Cary.NC.US writes: >The CPU in my notebook computer consumes much less power (i.e., goes >into a standby mode) when executing a HLT (halt) instruction. I've >written a little utility that can tell when the CPU is being little- >utilized, and it slows down the clock to save power when it detects >that situation. However, it would save even more if it executed the >HLT instruction. That'd be no problem except that... > >...the darn HLT instruction is privileged. > >Of course, there is no good reason for it to be privileged... it is no >more "dangerous" than "JMP $". However, Intel goofed (and Cyrix >dutifully >cloned the goof), so there's nothing that I can do about it. Yes indeed there is a good reason for the HLT instruction being privledged! Allowing an application to perform HLTs would seriously jepordize system security. Of course I realize this is immaterial to you in the situation you described, but if the os is running a task which controls Aunt Mille's iron lung, I'd like to have some assurance a cute little utility downloaded from some BBS can't execute a HLT. --- Creed Erickson
Technical Details
Message-ID:
<By3ws3.LF6@taligent.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!data.nas.nasa.gov!taligent!kip-4.taligent.com!creedReferences:
<JsgkuB1w165w@salzo.Cary.NC.US>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!data.nas.nasa.gov!taligent!kip-4.taligent.com!creed From: Creed Erickson <creed@blowfish.taligent.com> Subject: Re: Executing HLT in an application Message-ID: <By3ws3.LF6@taligent.com> X-Xxmessage-Id: <A73476BA1101C1C6@kip-4.taligent.com> X-Xxdate: Sat, 21 Nov 92 07:28:58 GMT Sender: usenet@taligent.com (More Bytes Than You Can Read) Organization: Taligent Inc. X-Useragent: Nuntius v1.1.1d12 References: <JsgkuB1w165w@salzo.Cary.NC.US> Date: Sun, 22 Nov 1992 07:28:51 GMT Lines: 25