* [PATCH 2/5] stack overflow safe kdump (2.6.16-rc1-i386) - use_safe_smp_processor_id
@ 2006-01-25 6:52 Fernando Luis Vazquez Cao
0 siblings, 0 replies; only message in thread
From: Fernando Luis Vazquez Cao @ 2006-01-25 6:52 UTC (permalink / raw)
To: Eric W. Biederman; +Cc: akpm, ak, vgoyal, linux-kernel, fastboot
Substitute "smp_processor_id" with the stack overflow-safe
"safe_smp_processor_id" in the reboot path to the second kernel.
Signed-off-by: Fernando Vazquez <fernando@intellilink.co.jp>
---
diff -urNp linux-2.6.16-rc1/arch/i386/kernel/crash.c linux-2.6.16-rc1-sov/arch/i386/kernel/crash.c
--- linux-2.6.16-rc1/arch/i386/kernel/crash.c 2006-01-25 14:28:30.000000000 +0900
+++ linux-2.6.16-rc1-sov/arch/i386/kernel/crash.c 2006-01-25 14:35:32.000000000 +0900
@@ -86,7 +86,7 @@ static void crash_save_self(struct pt_re
{
int cpu;
- cpu = smp_processor_id();
+ cpu = safe_smp_processor_id();
crash_save_this_cpu(regs, cpu);
}
@@ -173,7 +173,7 @@ void machine_crash_shutdown(struct pt_re
local_irq_disable();
/* Make a note of crashing cpu. Will be used in NMI callback.*/
- crashing_cpu = smp_processor_id();
+ crashing_cpu = safe_smp_processor_id();
nmi_shootdown_cpus();
lapic_shutdown();
#if defined(CONFIG_X86_IO_APIC)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-01-25 6:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-25 6:52 [PATCH 2/5] stack overflow safe kdump (2.6.16-rc1-i386) - use_safe_smp_processor_id Fernando Luis Vazquez Cao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®