Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcarm/sa11x0 Make masked interrupts don't bring CP...



details:   https://anonhg.NetBSD.org/src/rev/a5685bdcd8c0
branches:  trunk
changeset: 508686:a5685bdcd8c0
user:      toshii <toshii%NetBSD.org@localhost>
date:      Tue Apr 17 17:12:40 2001 +0000

description:
Make masked interrupts don't bring CPU out of idle mode.

diffstat:

 sys/arch/hpcarm/sa11x0/sa11x0.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 276299150b39 -r a5685bdcd8c0 sys/arch/hpcarm/sa11x0/sa11x0.c
--- a/sys/arch/hpcarm/sa11x0/sa11x0.c   Tue Apr 17 16:14:57 2001 +0000
+++ b/sys/arch/hpcarm/sa11x0/sa11x0.c   Tue Apr 17 17:12:40 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sa11x0.c,v 1.7 2001/03/21 17:42:37 toshii Exp $        */
+/*     $NetBSD: sa11x0.c,v 1.8 2001/04/17 17:12:40 toshii Exp $        */
 
 /*-
  * Copyright (c) 2001, The NetBSD Foundation, Inc.  All rights reserved.
@@ -179,8 +179,8 @@
        /* Route all bits to IRQ */
        bus_space_write_4(sc->sc_iot, sc->sc_ioh, SAIPIC_LR, 0);
 
-       /* Clear idle mask */
-       bus_space_write_4(sc->sc_iot, sc->sc_ioh, SAIPIC_CR, 0);
+       /* Exit idle mode only when unmasked intr is received */
+       bus_space_write_4(sc->sc_iot, sc->sc_ioh, SAIPIC_CR, 1);
 
        /* diable all DMAC channels */
        bus_space_write_4(sc->sc_iot, sc->sc_dmach, SADMAC_DCR0_CLR, 1);



Home | Main Index | Thread Index | Old Index