2 * Copyright 2004-2009 Analog Devices Inc.
4 * Licensed under the GPL-2 or later
7 #include <linux/linkage.h>
8 #include <asm/thread_info.h>
10 #include <asm/blackfin.h>
11 #include <asm/asm-offsets.h>
13 #include <asm/context.S>
15 #ifdef CONFIG_EXCPT_IRQ_SYSC_L1
24 * Hw IRQs are off on entry, and we don't want the scheduling tail
25 * code to starve high priority domains from interrupts while it
26 * runs. Therefore we first stall the root stage to have the
27 * virtual interrupt state reflect IMASK.
29 p0.l = ___ipipe_root_status;
30 p0.h = ___ipipe_root_status;
35 * Then we may enable hw IRQs, allowing preemption from high
36 * priority domains. schedule_tail() will do local_irq_enable()
37 * since Blackfin does not define __ARCH_WANT_UNLOCKED_CTXSW, so
38 * there is no need to unstall the root domain by ourselves
41 p0.l = _bfin_irq_flags;
42 p0.h = _bfin_irq_flags;
45 #endif /* CONFIG_IPIPE */
51 if cc jump .Lin_kernel;
57 /* do a 'fake' RTI by jumping to [RETI]
58 * to avoid clearing supervisor mode in child
65 ENDPROC(_ret_from_fork)
69 #if (ANOMALY_05000371)
99 ENTRY(_sys_rt_sigreturn)
104 call _do_rt_sigreturn;
108 ENDPROC(_sys_rt_sigreturn)