--- zzzz-none-000/linux-2.4.17/include/asm-sh/mmu_context.h 2001-09-08 19:29:09.000000000 +0000 +++ sangam-fb-322/linux-2.4.17/include/asm-sh/mmu_context.h 2004-11-24 13:21:34.000000000 +0000 @@ -166,6 +166,10 @@ struct mm_struct *next, struct task_struct *tsk, unsigned int cpu) { +#ifdef CONFIG_PREEMPT + if (preempt_is_disabled() == 0) + BUG(); +#endif if (prev != next) { unsigned long __pgdir = (unsigned long)next->pgd;