Module Name: src Committed By: tsutsui Date: Thu Feb 24 14:40:43 UTC 2011
Modified Files: src/sys/arch/ews4800mips/ews4800mips: tr2a_intr.c Log Message: Check and update intc_cause on each iteration of interrupt handler loop. Fixes silent hang during SCSI probe. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/arch/ews4800mips/ews4800mips/tr2a_intr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/ews4800mips/ews4800mips/tr2a_intr.c diff -u src/sys/arch/ews4800mips/ews4800mips/tr2a_intr.c:1.13 src/sys/arch/ews4800mips/ews4800mips/tr2a_intr.c:1.14 --- src/sys/arch/ews4800mips/ews4800mips/tr2a_intr.c:1.13 Sun Feb 20 07:55:20 2011 +++ src/sys/arch/ews4800mips/ews4800mips/tr2a_intr.c Thu Feb 24 14:40:43 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: tr2a_intr.c,v 1.13 2011/02/20 07:55:20 matt Exp $ */ +/* $NetBSD: tr2a_intr.c,v 1.14 2011/02/24 14:40:43 tsutsui Exp $ */ /*- * Copyright (c) 2004, 2005 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: tr2a_intr.c,v 1.13 2011/02/20 07:55:20 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tr2a_intr.c,v 1.14 2011/02/24 14:40:43 tsutsui Exp $"); #define __INTR_PRIVATE #include <sys/param.h> @@ -287,6 +287,7 @@ *INTC_CLEAR_REG = 0x14; *INTC_STATUS_REG; } + intc_cause = *INTC_STATUS_REG & *INTC_MASK_REG; } }