Module: xenomai-head Branch: master Commit: c3adeba7be517c12ec0c3d38e47ff1cd4fba98bc URL: http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=c3adeba7be517c12ec0c3d38e47ff1cd4fba98bc
Author: Philippe Gerum <r...@xenomai.org> Date: Thu Jun 25 21:52:00 2009 +0200 wrappers: remove code related to former IRQ shield --- include/asm-arm/bits/shadow.h | 27 --------------- include/asm-blackfin/bits/shadow.h | 49 ---------------------------- include/asm-powerpc/bits/shadow.h | 61 ----------------------------------- include/asm-x86/bits/shadow_32.h | 55 ------------------------------- include/asm-x86/bits/shadow_64.h | 62 ------------------------------------ 5 files changed, 0 insertions(+), 254 deletions(-) diff --git a/include/asm-arm/bits/shadow.h b/include/asm-arm/bits/shadow.h index eb30d19..7b92ebc 100644 --- a/include/asm-arm/bits/shadow.h +++ b/include/asm-arm/bits/shadow.h @@ -49,33 +49,6 @@ static inline void xnarch_init_shadow_tcb(xnarchtcb_t * tcb, tcb->name = name; } -static inline void xnarch_grab_xirqs(rthal_irq_handler_t handler) -{ - unsigned irq; - - for (irq = 0; irq < IPIPE_NR_XIRQS; irq++) - rthal_virtualize_irq(rthal_current_domain, - irq, - handler, NULL, NULL, IPIPE_HANDLE_MASK); -} - -static inline void xnarch_lock_xirqs(rthal_pipeline_stage_t * ipd, int cpuid) -{ - unsigned irq; - - for (irq = 0; irq < IPIPE_NR_XIRQS; irq++) - rthal_lock_irq(ipd, cpuid, irq); - -} - -static inline void xnarch_unlock_xirqs(rthal_pipeline_stage_t * ipd, int cpuid) -{ - unsigned irq; - - for (irq = 0; irq < IPIPE_NR_XIRQS; irq++) - rthal_unlock_irq(ipd, irq); -} - static inline int xnarch_local_syscall(struct pt_regs *regs) { int error = 0; diff --git a/include/asm-blackfin/bits/shadow.h b/include/asm-blackfin/bits/shadow.h index 83338be..6177af9 100644 --- a/include/asm-blackfin/bits/shadow.h +++ b/include/asm-blackfin/bits/shadow.h @@ -39,55 +39,6 @@ static inline void xnarch_init_shadow_tcb(xnarchtcb_t * tcb, tcb->name = name; } -static inline void xnarch_grab_xirqs(rthal_irq_handler_t handler) -{ - unsigned irq; - - for (irq = 0; irq < IPIPE_NR_XIRQS; irq++) - rthal_virtualize_irq(rthal_current_domain, - irq, - handler, NULL, NULL, IPIPE_HANDLE_MASK); -} - -static inline void xnarch_lock_xirqs(rthal_pipeline_stage_t * ipd, int cpuid) -{ - unsigned irq; - - for (irq = 0; irq < IPIPE_NR_XIRQS; irq++) { - switch (irq) { -#ifdef CONFIG_SMP - case RTHAL_CRITICAL_IPI: - - /* Never lock out this one. */ - continue; -#endif /* CONFIG_SMP */ - - default: - - rthal_lock_irq(ipd, cpuid, irq); - } - } -} - -static inline void xnarch_unlock_xirqs(rthal_pipeline_stage_t * ipd, int cpuid) -{ - unsigned irq; - - for (irq = 0; irq < IPIPE_NR_XIRQS; irq++) { - switch (irq) { -#ifdef CONFIG_SMP - case RTHAL_CRITICAL_IPI: - - continue; -#endif /* CONFIG_SMP */ - - default: - - rthal_unlock_irq(ipd, irq); - } - } -} - static inline int xnarch_local_syscall(struct pt_regs *regs) { unsigned long ptr, x, r, flags; diff --git a/include/asm-powerpc/bits/shadow.h b/include/asm-powerpc/bits/shadow.h index baf702b..e5d7e18 100644 --- a/include/asm-powerpc/bits/shadow.h +++ b/include/asm-powerpc/bits/shadow.h @@ -52,67 +52,6 @@ static inline void xnarch_init_shadow_tcb(xnarchtcb_t * tcb, tcb->name = name; } -static inline void xnarch_grab_xirqs(rthal_irq_handler_t handler) -{ - unsigned irq; - - for (irq = 0; irq < IPIPE_NR_XIRQS; irq++) - rthal_virtualize_irq(rthal_current_domain, - irq, - handler, NULL, NULL, IPIPE_HANDLE_MASK); - - /* On this arch, the decrementer trap is not an external IRQ but - it is instead mapped to a virtual IRQ, so we must grab it - individually. */ - - rthal_virtualize_irq(rthal_current_domain, - RTHAL_TIMER_IRQ, - handler, NULL, NULL, IPIPE_HANDLE_MASK); -} - -static inline void xnarch_lock_xirqs(rthal_pipeline_stage_t * ipd, int cpuid) -{ - unsigned irq; - - for (irq = 0; irq < IPIPE_NR_XIRQS; irq++) { - switch (irq) { -#ifdef CONFIG_SMP - case RTHAL_CRITICAL_IPI: - - /* Never lock out this one. */ - continue; -#endif /* CONFIG_SMP */ - - default: - - rthal_lock_irq(ipd, cpuid, irq); - } - } - - rthal_lock_irq(ipd, cpuid, RTHAL_TIMER_IRQ); -} - -static inline void xnarch_unlock_xirqs(rthal_pipeline_stage_t * ipd, int cpuid) -{ - unsigned irq; - - for (irq = 0; irq < IPIPE_NR_XIRQS; irq++) { - switch (irq) { -#ifdef CONFIG_SMP - case RTHAL_CRITICAL_IPI: - - continue; -#endif /* CONFIG_SMP */ - - default: - - rthal_unlock_irq(ipd, irq); - } - } - - rthal_unlock_irq(ipd, RTHAL_TIMER_IRQ); -} - static inline int xnarch_local_syscall(struct pt_regs *regs) { return -ENOSYS; diff --git a/include/asm-x86/bits/shadow_32.h b/include/asm-x86/bits/shadow_32.h index 9bad44a..9fc37a2 100644 --- a/include/asm-x86/bits/shadow_32.h +++ b/include/asm-x86/bits/shadow_32.h @@ -39,61 +39,6 @@ static inline void xnarch_init_shadow_tcb(xnarchtcb_t * tcb, tcb->fpup = x86_fpustate_ptr(&task->thread); } -static inline void xnarch_grab_xirqs(rthal_irq_handler_t handler) -{ - unsigned irq; - - for (irq = 0; irq < IPIPE_NR_XIRQS; irq++) - rthal_virtualize_irq(rthal_current_domain, - irq, - handler, NULL, NULL, IPIPE_HANDLE_MASK); -} - -static inline void xnarch_lock_xirqs(rthal_pipeline_stage_t * ipd, int cpuid) -{ - unsigned irq; - - for (irq = 0; irq < IPIPE_NR_XIRQS; irq++) { - switch (irq) { -#ifdef CONFIG_SMP - case RTHAL_CRITICAL_IPI: - case ipipe_apic_vector_irq(INVALIDATE_TLB_VECTOR): - case ipipe_apic_vector_irq(CALL_FUNCTION_VECTOR): - case ipipe_apic_vector_irq(RESCHEDULE_VECTOR): - - /* Never lock out these ones. */ - continue; -#endif /* CONFIG_SMP */ - - default: - - rthal_lock_irq(ipd, cpuid, irq); - } - } -} - -static inline void xnarch_unlock_xirqs(rthal_pipeline_stage_t * ipd, int cpuid) -{ - unsigned irq; - - for (irq = 0; irq < IPIPE_NR_XIRQS; irq++) { - switch (irq) { -#ifdef CONFIG_SMP - case RTHAL_CRITICAL_IPI: - case ipipe_apic_vector_irq(INVALIDATE_TLB_VECTOR): - case ipipe_apic_vector_irq(CALL_FUNCTION_VECTOR): - case ipipe_apic_vector_irq(RESCHEDULE_VECTOR): - - continue; -#endif /* CONFIG_SMP */ - - default: - - rthal_unlock_irq(ipd, irq); - } - } -} - static inline int xnarch_local_syscall(struct pt_regs *regs) { return -ENOSYS; diff --git a/include/asm-x86/bits/shadow_64.h b/include/asm-x86/bits/shadow_64.h index de29850..ddaa86a 100644 --- a/include/asm-x86/bits/shadow_64.h +++ b/include/asm-x86/bits/shadow_64.h @@ -43,68 +43,6 @@ static inline void xnarch_init_shadow_tcb(xnarchtcb_t * tcb, tcb->name = name; } -static inline void xnarch_grab_xirqs(rthal_irq_handler_t handler) -{ - unsigned irq; - - for (irq = 0; irq < IPIPE_NR_XIRQS; irq++) - rthal_virtualize_irq(rthal_current_domain, - irq, - handler, NULL, NULL, IPIPE_HANDLE_MASK); -} - -static inline void xnarch_lock_xirqs(rthal_pipeline_stage_t * ipd, int cpuid) -{ - unsigned irq; - - for (irq = 0; irq < IPIPE_NR_XIRQS; irq++) { - switch (irq) { -#ifdef CONFIG_SMP - case RTHAL_CRITICAL_IPI: - case ipipe_apic_vector_irq(CALL_FUNCTION_VECTOR): - case ipipe_apic_vector_irq(RESCHEDULE_VECTOR): - - /* Never lock out these ones. */ - continue; -#endif /* CONFIG_SMP */ - - default: - - if (irq >= ipipe_apic_vector_irq(INVALIDATE_TLB_VECTOR_START) && - irq <= ipipe_apic_vector_irq(INVALIDATE_TLB_VECTOR_END)) - /* Don't lock TLB invalidate vectors either */ - continue; - - rthal_lock_irq(ipd, cpuid, irq); - } - } -} - -static inline void xnarch_unlock_xirqs(rthal_pipeline_stage_t * ipd, int cpuid) -{ - unsigned irq; - - for (irq = 0; irq < IPIPE_NR_XIRQS; irq++) { - switch (irq) { -#ifdef CONFIG_SMP - case RTHAL_CRITICAL_IPI: - case IPIPE_FIRST_APIC_IRQ + CALL_FUNCTION_VECTOR - FIRST_SYSTEM_VECTOR: - case IPIPE_FIRST_APIC_IRQ + RESCHEDULE_VECTOR - FIRST_SYSTEM_VECTOR: - - continue; -#endif /* CONFIG_SMP */ - - default: - - if (irq >= INVALIDATE_TLB_VECTOR_START && - irq <= INVALIDATE_TLB_VECTOR_END) - continue; - - rthal_unlock_irq(ipd, irq); - } - } -} - static inline int xnarch_local_syscall(struct pt_regs *regs) { return -ENOSYS; _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git