| * Copyright 2004-2009 Analog Devices Inc. |
| * Licensed under the GPL-2 or later |
| #include <linux/linkage.h> |
| #include <asm/thread_info.h> |
| #include <asm/blackfin.h> |
| #include <asm/asm-offsets.h> |
| #ifdef CONFIG_EXCPT_IRQ_SYSC_L1 |
| * Hw IRQs are off on entry, and we don't want the scheduling tail |
| * code to starve high priority domains from interrupts while it |
| * runs. Therefore we first stall the root stage to have the |
| * virtual interrupt state reflect IMASK. |
| p0.l = ___ipipe_root_status; |
| p0.h = ___ipipe_root_status; |
| * Then we may enable hw IRQs, allowing preemption from high |
| * priority domains. schedule_tail() will do local_irq_enable() |
| * since Blackfin does not define __ARCH_WANT_UNLOCKED_CTXSW, so |
| * there is no need to unstall the root domain by ourselves |
| #endif /* CONFIG_IPIPE */ |
| pseudo_long_call _schedule_tail, p5; |