Module: xenomai-head
Branch: master
Commit: 382d452fa34e77ba18d530a61f9f4f78035ae1d3
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=382d452fa34e77ba18d530a61f9f4f78035ae1d3

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Sep 15 11:54:32 2009 +0200

blackfin: do not over-protect lsys_arch code

---

 include/asm-blackfin/bits/shadow.h |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/include/asm-blackfin/bits/shadow.h 
b/include/asm-blackfin/bits/shadow.h
index 6177af9..2327067 100644
--- a/include/asm-blackfin/bits/shadow.h
+++ b/include/asm-blackfin/bits/shadow.h
@@ -41,10 +41,7 @@ static inline void xnarch_init_shadow_tcb(xnarchtcb_t * tcb,
 
 static inline int xnarch_local_syscall(struct pt_regs *regs)
 {
-       unsigned long ptr, x, r, flags;
-       int err = 0;
-
-       local_irq_save_hw(flags);
+       unsigned long ptr, x, r;
 
        switch (__xn_reg_arg1(regs)) {
        case __xn_lsys_xchg:
@@ -58,12 +55,10 @@ static inline int xnarch_local_syscall(struct pt_regs *regs)
 
        default:
 
-               err = -ENOSYS;
+               return -ENOSYS;
        }
 
-       local_irq_restore_hw(flags);
-
-       return err;
+       return 0;
 }
 
 #define xnarch_schedule_tail(prev) do { } while(0)


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to