Date: Fri, 17 Oct 2003 10:08:22 -0700 From: Marcel Moolenaar <marcel@xcllnt.net> To: Nate Lawson <nate@root.org> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/ia64/ia64 machdep.c src/sys/kern kern_idle.c Message-ID: <20031017170822.GA70454@dhcp01.pn.xcllnt.net> In-Reply-To: <20031017095829.Q41079@root.org> References: <20031017022536.7CD8516A57A@hub.freebsd.org> <20031017095829.Q41079@root.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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@xcllnt.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031017170822.GA70454>
