Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/xscale correct the initial value of interrupt m...
details: https://anonhg.NetBSD.org/src/rev/44751ccbb75a
branches: trunk
changeset: 747212:44751ccbb75a
user: bsh <bsh%NetBSD.org@localhost>
date: Sat Sep 05 17:40:35 2009 +0000
description:
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.
diffstat:
sys/arch/arm/xscale/pxa2x0_intr.c | 24 +++++-------------------
1 files changed, 5 insertions(+), 19 deletions(-)
diffs (47 lines):
diff -r 7859ad6aa6c6 -r 44751ccbb75a sys/arch/arm/xscale/pxa2x0_intr.c
--- a/sys/arch/arm/xscale/pxa2x0_intr.c Sat Sep 05 16:45:33 2009 +0000
+++ b/sys/arch/arm/xscale/pxa2x0_intr.c Sat Sep 05 17:40:35 2009 +0000
@@ -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)
{
+ /*
+ * disable all interrups until handlers are installed.
+ */
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.
- */
- pxa2x0_imask[IPL_SOFTCLOCK] = ~0;
- pxa2x0_imask[IPL_SOFTBIO] = ~0;
- pxa2x0_imask[IPL_SOFTNET] = ~0;
- pxa2x0_imask[IPL_SOFTSERIAL] = ~0;
-
- 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
Home |
Main Index |
Thread Index |
Old Index