Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/arch/atari/dev Pull up revision 1.20 (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/9ec1de846bd2
branches:  netbsd-1-4
changeset: 469858:9ec1de846bd2
user:      he <he%NetBSD.org@localhost>
date:      Thu Dec 16 22:22:53 1999 +0000

description:
Pull up revision 1.20 (requested by leo):
  Change the way that bits are cleared in the InterruptPending
  register of the 68901, avoiding a read-modify-write cycle.
  Solves a "hanging keyboard" problem.

diffstat:

 sys/arch/atari/dev/clock.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 97d08f6bc955 -r 9ec1de846bd2 sys/arch/atari/dev/clock.c
--- a/sys/arch/atari/dev/clock.c        Thu Dec 16 22:22:32 1999 +0000
+++ b/sys/arch/atari/dev/clock.c        Thu Dec 16 22:22:53 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clock.c,v 1.19 1998/01/12 18:04:01 thorpej Exp $       */
+/*     $NetBSD: clock.c,v 1.19.8.1 1999/12/16 22:22:53 he Exp $        */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -206,13 +206,13 @@
 void cpu_initclocks()
 {
        MFP->mf_tacr  = T_Q200;         /* Start timer                  */
-       MFP->mf_ipra &= ~IA_TIMA;       /* Clear pending interrupts     */
+       MFP->mf_ipra  = (u_int8_t)~IA_TIMA;/* Clear pending interrupts  */
        MFP->mf_iera |= IA_TIMA;        /* Enable timer interrupts      */
        MFP->mf_imra |= IA_TIMA;        /*    .....                     */
 
 #ifdef STATCLOCK
        MFP->mf_tcdcr = (MFP->mf_tcdcr & 0x7) | (T_Q200<<4); /* Start   */
-       MFP->mf_iprb &= ~IB_TIMC;       /* Clear pending interrupts     */
+       MFP->mf_iprb  = (u_int8_t)~IB_TIMC;/* Clear pending interrupts  */
        MFP->mf_ierb |= IB_TIMC;        /* Enable timer interrupts      */
        MFP->mf_imrb |= IB_TIMC;        /*    .....                     */
 #endif /* STATCLOCK */



Home | Main Index | Thread Index | Old Index