Module Name: src Committed By: bsh Date: Sat Sep 5 17:40:35 UTC 2009
Modified Files: src/sys/arch/arm/xscale: pxa2x0_intr.c Log Message: correct the initial value of interrupt masks. 0 is to disable. This fixes stray interrupt from LCD controller when lcd driver is not configured in the kernel. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/arch/arm/xscale/pxa2x0_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/arm/xscale/pxa2x0_intr.c diff -u src/sys/arch/arm/xscale/pxa2x0_intr.c:1.15 src/sys/arch/arm/xscale/pxa2x0_intr.c:1.16 --- src/sys/arch/arm/xscale/pxa2x0_intr.c:1.15 Fri Nov 7 16:14:37 2008 +++ src/sys/arch/arm/xscale/pxa2x0_intr.c Sat Sep 5 17:40:35 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: pxa2x0_intr.c,v 1.15 2008/11/07 16:14:37 rafal Exp $ */ +/* $NetBSD: pxa2x0_intr.c,v 1.16 2009/09/05 17:40:35 bsh Exp $ */ /* * Copyright (c) 2002 Genetec Corporation. All rights reserved. @@ -39,7 +39,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pxa2x0_intr.c,v 1.15 2008/11/07 16:14:37 rafal Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pxa2x0_intr.c,v 1.16 2009/09/05 17:40:35 bsh Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -262,25 +262,11 @@ init_interrupt_masks(void) { - memset(pxa2x0_imask, 0, sizeof(pxa2x0_imask)); - - /* - * IPL_NONE has soft interrupts enabled only, at least until - * hardware handlers are installed. - */ - pxa2x0_imask[IPL_NONE] = ~0; /* - * Initialize the soft interrupt masks to block themselves. + * disable all interrups until handlers are installed. */ - pxa2x0_imask[IPL_SOFTCLOCK] = ~0; - pxa2x0_imask[IPL_SOFTBIO] = ~0; - pxa2x0_imask[IPL_SOFTNET] = ~0; - pxa2x0_imask[IPL_SOFTSERIAL] = ~0; + memset(pxa2x0_imask, 0, sizeof(pxa2x0_imask)); - pxa2x0_imask[IPL_SOFTCLOCK] &= pxa2x0_imask[IPL_NONE]; - pxa2x0_imask[IPL_SOFTBIO] &= pxa2x0_imask[IPL_SOFTCLOCK]; - pxa2x0_imask[IPL_SOFTNET] &= pxa2x0_imask[IPL_SOFTBIO]; - pxa2x0_imask[IPL_SOFTSERIAL] &= pxa2x0_imask[IPL_SOFTNET]; } #undef splx