From: "Jeff Creem" <jeff@thecreems.com>
Subject: Re: Halting a CPU
Date: Tue, 24 Jul 2001 10:55:15 GMT
Date: 2001-07-24T10:55:15+00:00 [thread overview]
Message-ID: <nuc77.18471$N21.6071978@typhoon.ne.mediaone.net> (raw)
In-Reply-To: 9jh9f6$4qu$1@dns3.cae.ca
I you really mean you want to issue the halt command then you need assembler
(or call an existing Ada or C wrapper that calls the assembler code).
However, I suspect
(WARNING STRONG SPECULATION FOLLOWS NOT BASED ON ANYTHING BUT
HUNCH)
that if you are on a normal OS that the halt instruction may be privileged
and not
allowed by normal userspace processes (i.e. I am speculating that this will
not be
allowed on Linux or Win NT).. If you are on a bare machine or small
real-time kernel
then this might work.
"Phil Foran" <pforan@cae.com> wrote in message
news:9jh9f6$4qu$1@dns3.cae.ca...
> hi all,
>
> In the code im doing, on certain conditions i need to halt my CPU
completely
> (Pentium 2) and im wondering if a function that does this already exists
in
> ADA... or is there one in C/C++ that i can call... or do i have to go
right
> down to assembler to find it?
>
> Thanks in advance for any help!
>
> Phil
>
>
prev parent reply other threads:[~2001-07-24 10:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-23 13:39 Halting a CPU Phil Foran
2001-07-24 10:55 ` Jeff Creem [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox