bonefish + mmlr:

Check gKernelStartup to avoid sending ICI when entering the kernel debugger
(after ICI is enabled). Moreover it's more obvious than to use that instead
of relying on ICIs not being enabled.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29907 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-04-04 21:57:07 +00:00
parent 000fe088a7
commit 73b118b633
+2 -1
View File
@@ -743,7 +743,8 @@ enter_kernel_debugger(const char* message)
arch_debug_save_registers(&dbg_register_file[smp_get_current_cpu()][0]);
sPreviousDprintfState = set_dprintf_enabled(true);
if (sDebuggerOnCPU != smp_get_current_cpu() && smp_get_num_cpus() > 1) {
if (!gKernelStartup && sDebuggerOnCPU != smp_get_current_cpu()
&& smp_get_num_cpus() > 1) {
// First entry on a MP system, send a halt request to all of the other
// CPUs. Should they try to enter the debugger they will be cought in
// the loop above.