From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c22cb97bce87a814 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-24 03:55:16 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!jfk3-feed1.news.digex.net!intermedia!news.stealth.net!news-east.rr.com!chnws02.mediaone.net!chnws06.ne.mediaone.net!24.128.8.70!typhoon.ne.mediaone.net.POSTED!not-for-mail From: "Jeff Creem" Newsgroups: comp.lang.ada References: <9jh9f6$4qu$1@dns3.cae.ca> Subject: Re: Halting a CPU X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Tue, 24 Jul 2001 10:55:15 GMT NNTP-Posting-Host: 24.147.117.96 X-Complaints-To: abuse@mediaone.net X-Trace: typhoon.ne.mediaone.net 995972115 24.147.117.96 (Tue, 24 Jul 2001 06:55:15 EDT) NNTP-Posting-Date: Tue, 24 Jul 2001 06:55:15 EDT Organization: Road Runner Xref: archiver1.google.com comp.lang.ada:10500 Date: 2001-07-24T10:55:15+00:00 List-Id: 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" 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 > >