ia64/xen-unstable

view tools/debugger/pdb/linux-2.6-patches/traps.patch @ 6552:a9873d384da4

Merge.
author adsharma@los-vmm.sc.intel.com
date Thu Aug 25 12:24:48 2005 -0700 (2005-08-25)
parents 112d44270733 fa0754a9f64f
children dfaf788ab18c
line source
1 diff -u linux-2.6.12/arch/xen/i386/kernel/traps.c linux-2.6.12-pdb/arch/xen/i386/kernel/traps.c
2 --- linux-2.6.12/arch/xen/i386/kernel/traps.c 2005-07-31 22:47:00.000000000 +0100
3 +++ linux-2.6.12-pdb/arch/xen/i386/kernel/traps.c 2005-07-31 22:47:32.000000000 +0100
4 @@ -102,6 +102,16 @@
5 return err;
6 }
8 +int unregister_die_notifier(struct notifier_block *nb)
9 +{
10 + int err = 0;
11 + unsigned long flags;
12 + spin_lock_irqsave(&die_notifier_lock, flags);
13 + err = notifier_chain_unregister(&i386die_chain, nb);
14 + spin_unlock_irqrestore(&die_notifier_lock, flags);
15 + return err;
16 +}
17 +
18 static inline int valid_stack_ptr(struct thread_info *tinfo, void *p)
19 {
20 return p > (void *)tinfo &&