i80321_intr.h (256281) | i80321_intr.h (278613) |
---|---|
1/* $NetBSD: i80321_intr.h,v 1.5 2004/01/12 10:25:06 scw Exp $ */ 2 3/*- 4 * Copyright (c) 2001, 2002 Wasabi Systems, Inc. 5 * All rights reserved. 6 * 7 * Written by Jason R. Thorpe for Wasabi Systems, Inc. 8 * --- 20 unchanged lines hidden (view full) --- 29 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 30 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 31 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 32 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 33 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35 * POSSIBILITY OF SUCH DAMAGE. 36 * | 1/* $NetBSD: i80321_intr.h,v 1.5 2004/01/12 10:25:06 scw Exp $ */ 2 3/*- 4 * Copyright (c) 2001, 2002 Wasabi Systems, Inc. 5 * All rights reserved. 6 * 7 * Written by Jason R. Thorpe for Wasabi Systems, Inc. 8 * --- 20 unchanged lines hidden (view full) --- 29 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 30 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 31 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 32 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 33 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35 * POSSIBILITY OF SUCH DAMAGE. 36 * |
37 * $FreeBSD: stable/10/sys/arm/xscale/i80321/i80321_intr.h 236987 2012-06-13 04:38:09Z imp $ | 37 * $FreeBSD: stable/10/sys/arm/xscale/i80321/i80321_intr.h 278613 2015-02-12 03:50:33Z ian $ |
38 * 39 */ 40 41#ifndef _I80321_INTR_H_ 42#define _I80321_INTR_H_ 43 44#define ARM_IRQ_HANDLER _C_LABEL(i80321_intr_dispatch) 45 --- 55 unchanged lines hidden (view full) --- 101 102 /* Don't let the compiler re-order this code with preceding code */ 103 __insn_barrier(); 104 105 current_spl_level = new; 106 107 hwpend = (i80321_ipending & ICU_INT_HWMASK) & ~new; 108 if (hwpend != 0) { | 38 * 39 */ 40 41#ifndef _I80321_INTR_H_ 42#define _I80321_INTR_H_ 43 44#define ARM_IRQ_HANDLER _C_LABEL(i80321_intr_dispatch) 45 --- 55 unchanged lines hidden (view full) --- 101 102 /* Don't let the compiler re-order this code with preceding code */ 103 __insn_barrier(); 104 105 current_spl_level = new; 106 107 hwpend = (i80321_ipending & ICU_INT_HWMASK) & ~new; 108 if (hwpend != 0) { |
109 oldirqstate = disable_interrupts(I32_bit); | 109 oldirqstate = disable_interrupts(PSR_I); |
110 intr_enabled |= hwpend; 111 i80321_set_intrmask(); 112 restore_interrupts(oldirqstate); 113 } 114 115 if ((i80321_ipending & INT_SWMASK) & ~new) 116 i80321_do_pending(); 117} --- 48 unchanged lines hidden --- | 110 intr_enabled |= hwpend; 111 i80321_set_intrmask(); 112 restore_interrupts(oldirqstate); 113 } 114 115 if ((i80321_ipending & INT_SWMASK) & ~new) 116 i80321_do_pending(); 117} --- 48 unchanged lines hidden --- |