Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch Don't need to frob CPSR in _splraise().



details:   https://anonhg.NetBSD.org/src/rev/40aff1fd103f
branches:  trunk
changeset: 535315:40aff1fd103f
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Aug 14 19:47:18 2002 +0000

description:
Don't need to frob CPSR in _splraise().

diffstat:

 sys/arch/arm/xscale/i80321_icu.c       |  7 ++-----
 sys/arch/evbarm/iq80310/iq80310_intr.c |  7 ++-----
 2 files changed, 4 insertions(+), 10 deletions(-)

diffs (50 lines):

diff -r 15e2edf111d4 -r 40aff1fd103f sys/arch/arm/xscale/i80321_icu.c
--- a/sys/arch/arm/xscale/i80321_icu.c  Wed Aug 14 19:21:50 2002 +0000
+++ b/sys/arch/arm/xscale/i80321_icu.c  Wed Aug 14 19:47:18 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i80321_icu.c,v 1.3 2002/07/30 04:45:41 thorpej Exp $   */
+/*     $NetBSD: i80321_icu.c,v 1.4 2002/08/14 19:47:18 thorpej Exp $   */
 
 /*
  * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -340,14 +340,11 @@
 int
 _splraise(int ipl)
 {
-       int old, oldirqstate;
+       int old;
 
-       oldirqstate = disable_interrupts(I32_bit);
        old = current_spl_level;
        current_spl_level |= imask[ipl];
 
-       restore_interrupts(oldirqstate);
-
        return (old);
 }
 
diff -r 15e2edf111d4 -r 40aff1fd103f sys/arch/evbarm/iq80310/iq80310_intr.c
--- a/sys/arch/evbarm/iq80310/iq80310_intr.c    Wed Aug 14 19:21:50 2002 +0000
+++ b/sys/arch/evbarm/iq80310/iq80310_intr.c    Wed Aug 14 19:47:18 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iq80310_intr.c,v 1.15 2002/08/07 05:15:13 briggs Exp $ */
+/*     $NetBSD: iq80310_intr.c,v 1.16 2002/08/14 19:48:04 thorpej Exp $        */
 
 /*
  * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -305,14 +305,11 @@
 int
 _splraise(int ipl)
 {
-       int old, oldirqstate;
+       int old;
 
-       oldirqstate = disable_interrupts(I32_bit);
        old = current_spl_level;
        current_spl_level |= imask[ipl];
 
-       restore_interrupts(oldirqstate);
-
        return (old);
 }
 



Home | Main Index | Thread Index | Old Index