Article View: comp.os.os2.programmer
Article #3078Executing HLT in an application
From: David Burton
Date: Sat, 21 Nov 1992 02:01
Date: Sat, 21 Nov 1992 02:01
22 lines
1210 bytes
1210 bytes
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. My question, then, is, "what is the best way to get a few bytes of ring 0 code executed by my application?" A device driver? Or is there a better/simpler way? All advice will be appreciated... -Dave
Technical Details
Message-ID:
<JsgkuB1w165w@salzo.Cary.NC.US>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!usc!rpi!psinntp!psinntp!dg-rtp!salzo!dburtonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!usc!rpi!psinntp!psinntp!dg-rtp!salzo!dburton From: dburton@salzo.Cary.NC.US (David Burton) Newsgroups: comp.os.os2.programmer Subject: Executing HLT in an application Message-ID: <JsgkuB1w165w@salzo.Cary.NC.US> Date: Fri, 20 Nov 92 21:01:06 EST Organization: SalzoBoard BBS Lines: 22