Since r33809 dprintf() acquires a mutex when called with interrupts enabled.
This is something must must not do in an idle thread or we get the scheduler into trouble. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34196 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -227,7 +227,15 @@ _start(kernel_args *bootKernelArgs, int currentCPU)
|
|||||||
enable_interrupts();
|
enable_interrupts();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef TRACE_BOOT
|
||||||
|
// We disable interrupts for this dprintf(), since otherwise dprintf()
|
||||||
|
// would acquires a mutex, which is something we must not do in an idle
|
||||||
|
// thread, or otherwise the scheduler would be seriously unhappy.
|
||||||
|
disable_interrupts();
|
||||||
TRACE("main: done... begin idle loop on cpu %d\n", currentCPU);
|
TRACE("main: done... begin idle loop on cpu %d\n", currentCPU);
|
||||||
|
enable_interrupts();
|
||||||
|
#endif
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
arch_cpu_idle();
|
arch_cpu_idle();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user