public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
* idle process in x86 linux
@ 2012-10-26 14:28 Xin Tong
  2012-10-26 15:51 ` David Given
  0 siblings, 1 reply; 4+ messages in thread
From: Xin Tong @ 2012-10-26 14:28 UTC (permalink / raw)
  To: linux-8086

I am wondering why idle process is implemented as infinite loop with
HLT instruction. how does it compare to MWAIT and MONITOR instruction
sequence ?

Xin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: idle process in x86 linux
  2012-10-26 14:28 idle process in x86 linux Xin Tong
@ 2012-10-26 15:51 ` David Given
  2012-10-27  3:03   ` Xin Tong
  0 siblings, 1 reply; 4+ messages in thread
From: David Given @ 2012-10-26 15:51 UTC (permalink / raw)
  To: linux-8086

Xin Tong wrote:
> I am wondering why idle process is implemented as infinite loop with
> HLT instruction. how does it compare to MWAIT and MONITOR instruction
> sequence ?

They're only available in very modern processors --- ELKS targets the
8086, so they're not available. HLT is the only game in town.

-- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│ "There does not now, nor will there ever, exist a programming
│ language in which it is the least bit hard to write bad programs." ---
│ Flon's Axiom
--
To unsubscribe from this list: send the line "unsubscribe linux-8086" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: idle process in x86 linux
  2012-10-26 15:51 ` David Given
@ 2012-10-27  3:03   ` Xin Tong
  2012-10-29  8:13     ` Angel M Alganza
  0 siblings, 1 reply; 4+ messages in thread
From: Xin Tong @ 2012-10-27  3:03 UTC (permalink / raw)
  To: David Given; +Cc: linux-8086

ok i see. btw ELKS  stands for E Linux Kernel S ?

Xin


On Fri, Oct 26, 2012 at 11:51 AM, David Given <dg@cowlark.com> wrote:
> Xin Tong wrote:
>> I am wondering why idle process is implemented as infinite loop with
>> HLT instruction. how does it compare to MWAIT and MONITOR instruction
>> sequence ?
>
> They're only available in very modern processors --- ELKS targets the
> 8086, so they're not available. HLT is the only game in town.
>
> --
> ┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
> │ "There does not now, nor will there ever, exist a programming
> │ language in which it is the least bit hard to write bad programs." ---
> │ Flon's Axiom
> --
> To unsubscribe from this list: send the line "unsubscribe linux-8086" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-8086" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: idle process in x86 linux
  2012-10-27  3:03   ` Xin Tong
@ 2012-10-29  8:13     ` Angel M Alganza
  0 siblings, 0 replies; 4+ messages in thread
From: Angel M Alganza @ 2012-10-29  8:13 UTC (permalink / raw)
  To: linux-8086

[-- Attachment #1: Type: text/plain, Size: 155 bytes --]

On Fri, Oct 26, 2012 at 11:03:49PM -0400, Xin Tong wrote:
> ok i see. btw ELKS  stands for E Linux Kernel S ?
 
Embedded LK Subset.

Regards,
Ángel

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-10-29  8:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-26 14:28 idle process in x86 linux Xin Tong
2012-10-26 15:51 ` David Given
2012-10-27  3:03   ` Xin Tong
2012-10-29  8:13     ` Angel M Alganza

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox