[haiku-commits] Re: r38109 - haiku/trunk/src/system/kernel/arch/x86

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 15 Aug 2010 19:26:48 +0200

On 2010-08-15 at 12:17:43 [+0200], axeld@xxxxxxxxxxxxxxxx wrote:
> Author: axeld
> Date: 2010-08-15 12:17:42 +0200 (Sun, 15 Aug 2010)
> New Revision: 38109
> Changeset: http://dev.haiku-os.org/changeset/38109
> 
> Modified:
>    haiku/trunk/src/system/kernel/arch/x86/arch_cpu.cpp
> Log:
> * Moved the "run me on the boot CPU" code to where it is actually used.
> * Added a TODO that thread_yield() doesn't like to be called from the idle
>   thread.

I don't understand this TODO. Nothing is executed in an idle thread save 
interrupt handlers with interrupts disabled. And calling thread_yield() with 
interrupts disabled is definitely not legal in *any* thread.

CU, Ingo

Other related posts: