home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / os2 / programm / 6609 < prev    next >
Encoding:
Text File  |  1992-11-21  |  1.7 KB  |  40 lines

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