kdb
[Top] [All Lists]

[PATCH] KDB x86_64 should use register_die_notifier

To: kdb@xxxxxxxxxxx
Subject: [PATCH] KDB x86_64 should use register_die_notifier
From: Corey Minyard <minyard@xxxxxxx>
Date: Fri, 01 Jun 2007 14:23:12 -0500
Cc: cminyard@xxxxxxxxxx
Reply-to: minyard@xxxxxxx
Sender: kdb-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)
I was working on KDB and ran into a problem on initialization on x86_64.
There's some magic that happens with register_die_notifier to make it
work correctly.  die_chain should not be directly accessed.  KDB should
go through register_die_notifier.

Signed-off-by: Corey Minyard <cminyard@xxxxxxxxxx>

Index: linux-2.6.21/arch/x86_64/kdb/kdbasupport.c
===================================================================
--- linux-2.6.21.orig/arch/x86_64/kdb/kdbasupport.c
+++ linux-2.6.21/arch/x86_64/kdb/kdbasupport.c
@@ -915,7 +915,7 @@ kdba_init(void)
 {
        kdb_register("pt_regs", kdba_pt_regs, "address", "Format struct 
pt_regs", 0);
        kdb_register("cpu_pda", kdba_cpu_pda, "<cpu>", "Format struct cpu_pda", 
0);
-       atomic_notifier_chain_register(&die_chain, &kdba_notifier);
+       register_die_notifier(&kdba_notifier);
        return;
 }
 


---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
<Prev in Thread] Current Thread [Next in Thread>