From: Jan Kiszka <jan.kiszka@domain.hid>
To: Philippe Gerum <rpm@xenomai.org>
Cc: adeos-main <adeos-main@gna.org>
Subject: [Adeos-main] [PATCH] Improve ipipe's oops detection
Date: Sun, 19 Oct 2008 13:19:21 +0200 [thread overview]
Message-ID: <48FB17B9.2070901@domain.hid> (raw)
[-- 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 --]
reply other threads:[~2008-10-19 11:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48FB17B9.2070901@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=adeos-main@gna.org \
--cc=rpm@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.