* [Adeos-main] [PATCH] Improve ipipe's oops detection
@ 2008-10-19 11:19 Jan Kiszka
0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2008-10-19 11:19 UTC (permalink / raw)
To: Philippe Gerum; +Cc: adeos-main
[-- Attachment #1: Type: text/plain, Size: 1129 bytes --]
Due to my extended context checks, oopses will first trigger such errors
now before the actual reason is dumped. Patch below ensures that ongoing
oopses disable the context check, and it also pushes the panic-freeze to
a slightly bit earlier point.
Jan
---
kernel/panic.c | 2 ++
lib/bust_spinlocks.c | 1 -
2 files changed, 2 insertions(+), 1 deletion(-)
Index: b/kernel/panic.c
===================================================================
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -267,6 +267,8 @@ int oops_may_print(void)
*/
void oops_enter(void)
{
+ ipipe_trace_panic_freeze();
+ ipipe_disable_context_check(ipipe_processor_id());
debug_locks_off(); /* can't trust the integrity of the kernel anymore */
do_oops_enter_exit();
}
Index: b/lib/bust_spinlocks.c
===================================================================
--- a/lib/bust_spinlocks.c
+++ b/lib/bust_spinlocks.c
@@ -18,7 +18,6 @@
void __attribute__((weak)) bust_spinlocks(int yes)
{
if (yes) {
- ipipe_trace_panic_freeze();
++oops_in_progress;
} else {
#ifdef CONFIG_VT
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-19 11:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-19 11:19 [Adeos-main] [PATCH] Improve ipipe's oops detection Jan Kiszka
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.