cvs commit: src/sys/ia64/ia64 machdep.c src/sys/kern kern_idle.c

Marcel Moolenaar marcel at xcllnt.net
Fri Oct 17 10:08:24 PDT 2003


On Fri, Oct 17, 2003 at 10:01:12AM -0700, Nate Lawson wrote:
> 
> > +void
> > +cpu_idle()
> > +{
> > +	struct ia64_pal_result res;
> > +
> > +	res = ia64_call_pal_static(PAL_HALT_LIGHT, 0, 0, 0);
> >  }
> >
> >  void
> 
> Is this the preferred way to do this?

It's the only way to do it.

> If I call asm("sti; hlt") on ia64,
> will that work?

No.

> What about on amd64?

Dunno. It probably works.

-- 
 Marcel Moolenaar	  USPA: A-39004		 marcel at xcllnt.net


More information about the cvs-src mailing list