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 <[EMAIL PROTECTED]>

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.

Reply via email to