[Top][All Lists]
[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/
- Re: [Qemu-devel] Qemu workstation, (continued)
- Re: [Qemu-devel] Qemu workstation, Fabrice Bellard, 2004/04/05
- Re: [Qemu-devel] Qemu workstation, Jamie Burns, 2004/04/05
- Re: [Qemu-devel] Qemu workstation, Richard Zidlicky, 2004/04/06
- Re: [Qemu-devel] Qemu workstation, Brad Campbell, 2004/04/06
- Re: [Qemu-devel] Qemu workstation, Filip Navara, 2004/04/06
- Re: [Qemu-devel] Qemu workstation, Brad Campbell, 2004/04/07
- Re: [Qemu-devel] Qemu workstation, Filip Navara, 2004/04/07
- Re: [Qemu-devel] Qemu workstation, Brad Campbell, 2004/04/07
- Re: [Qemu-devel] Qemu workstation, Grzegorz Kulewski, 2004/04/07
- Re: [Qemu-devel] Qemu workstation, Richard Zidlicky, 2004/04/08
- Re: [Qemu-devel] Qemu workstation,
Filip Navara <=
- Re: [Qemu-devel] Qemu workstation, Jamie Burns, 2004/04/06
- Re: [Qemu-devel] Qemu workstation, Fabrice Bellard, 2004/04/06
Re: [Qemu-devel] Qemu workstation, Jean-Michel POURE, 2004/04/05
Re: [Qemu-devel] Qemu workstation, Mike Nordell, 2004/04/05