Skip to contentSkip to conversation

Improve ipipe's oops detection

PATCH New Jan Kiszka 1 participant 1 message Oct 19, 2008 Library code

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 Improve ipipe's oops detection

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(-)
kernel/panic.c +2 -0
Index: 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();
 }
lib/bust_spinlocks.c +0 -1
Index: 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