qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Qemu workstation


From: Filip Navara
Subject: Re: [Qemu-devel] Qemu workstation
Date: Wed, 07 Apr 2004 11:40:25 +0200 (CEST)

----- PŮVODNÍ ZPRÁVA -----
Od: "Brad Campbell" <address@hidden>
Komu: address@hidden
Předmět: Re: [Qemu-devel] Qemu workstation
Datum: 7.4.2004 - 10:24:12

...
 
> It does? My information tells me that it halts the
> processor until an interrupt or other wakeup 
> source occurs. Check arch/i386/kernel/process.c
> 
> /*
> * We use this if we don't have any better
> * idle routine..
> */
> void default_idle(void)
> {
> if (current_cpu_data.hlt_works_ok && !hlt_counter) {
> __cli();
> if (!current->need_resched)
> safe_halt();
> else
> __sti();
> }
> }
> 
> and in include/asm/system.h
> 
> system.h:#define safe_halt()            __asm__
> __volatile__("sti; hlt": : :"memory")
> 
> Looks like a hlt to me and not a nop in site.
> The kernel does a check at boot time to see if the
> processor supports the hlt instruction and if it 
> does it uses that in the idle loop.
> 
> Am I wrong?
> 
> Brad
> 

You are right and I'm wrong, sorry.

- Filip


-- 
ANONYMNI PRIPOJENI K INTERNETU - bez registrace, zdarma, ihned!
Pripojeni na cisle 971 200 111 z cele CR,
v Praze navic na cisle 971 200 555.
Uzivatelske jmeno "volny", heslo "volny".
http://sluzby.volny.cz/product/dialup/anon/






reply via email to

[Prev in Thread] Current Thread [Next in Thread]