--- zzzz-none-000/linux-2.6.28.10/arch/mips/include/asm/ptrace.h 2009-05-02 18:54:43.000000000 +0000 +++ fusiv-7390-686/linux-2.6.28.10/arch/mips/include/asm/ptrace.h 2013-09-02 17:05:03.000000000 +0000 @@ -39,6 +39,15 @@ unsigned long cp0_status; unsigned long hi; unsigned long lo; +#if defined(__mips_dsp) + unsigned long ac1hi; + unsigned long ac1lo; + unsigned long ac2hi; + unsigned long ac2lo; + unsigned long ac3hi; + unsigned long ac3lo; + unsigned long dspctrl; +#endif/*--- #if defined(__mips_dsp) ---*/ #ifdef CONFIG_CPU_HAS_SMARTMIPS unsigned long acx; #endif @@ -142,8 +151,12 @@ static inline void die_if_kernel(const char *str, const struct pt_regs *regs) { - if (unlikely(!user_mode(regs))) + if (unlikely(!user_mode(regs))) { + extern unsigned int avm_nmi_taken __attribute__ ((weak)); + if(&avm_nmi_taken) + avm_nmi_taken = ~0xdeadbabe; die(str, regs); + } } #endif