]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] crashdump: x86: add NMI handler to capture other CPUs
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 25 Jun 2005 21:57:58 +0000 (14:57 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 25 Jun 2005 23:24:49 +0000 (16:24 -0700)
commitc4ac4263a019c791e906f284bb03891d3c25a845
tree9bfd0f45824748cbf3287a82b4449e6e18f25332
parent5033cba087f6ac773002123aafbea1aad4267682
[PATCH] crashdump: x86: add NMI handler to capture other CPUs

One of the dangers when switching from one kernel to another is what happens
to all of the other cpus that were running in the crashed kernel.  In an
attempt to avoid that problem this patch adds a nmi handler and attempts to
shoot down the other cpus by sending them non maskable interrupts.

The code then waits for 1 second or until all known cpus have stopped running
and then jumps from the running kernel that has crashed to the kernel in
reserved memory.

The kernel spin loop is used for the delay as that should behave continue to
be safe even in after a crash.

Signed-off-by: Eric Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/crash.c