
|
[haiku-appserver]
||
[Date Prev]
[12-2005 Date Index]
[Date Next]
||
[Thread Prev]
[12-2005 Thread Index]
[Thread Next]
[haiku-appserver] Re: CPU-idle-loop and HALT instruction?
- From: Stephan Assmus <superstippi@xxxxxx>
- To: haiku-appserver@xxxxxxxxxxxxx
- Date: Mon, 12 Dec 2005 23:52:06 +0100
> > Or, is it already in there and can I somehow enable it?
>
>
> From src/system/kernel/arch/x86/arch_cpu.c:
>
> void
> arch_cpu_idle(void)
> {
> switch (smp_get_num_cpus()) {
> case 0:
> panic("You need at least 1 CPU to run Haiku\n");
> case 1:
> asm("hlt");
> default:
> break;
> }
> }
>
> So, if you have more than one CPU, the only thing you can do is change this
> code. There might be a reason, why it is implemented like it is, though. On
> the other hand there's also no comment that you computer will explode when
> executing "hlt" on a multi CPU machine either...
I seem to recall that on my dual CPU machine, there is simply two idle
threads running. Or is my memory failing me?
Best regards,
-Stephan
|

|