Fix interrupt handling somewhat so that break signal gets DDB.

This commit is contained in:
toshii 2001-03-12 03:27:18 +00:00
parent 61bb060b34
commit 1bb261e173
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: sa11x0_com.c,v 1.4 2001/03/10 13:34:34 toshii Exp $ */ /* $NetBSD: sa11x0_com.c,v 1.5 2001/03/12 03:27:18 toshii Exp $ */
/*- /*-
* Copyright (c) 1998, 1999, 2001 The NetBSD Foundation, Inc. * Copyright (c) 1998, 1999, 2001 The NetBSD Foundation, Inc.
@ -1338,9 +1338,12 @@ sacomintr(arg)
COM_UNLOCK(sc); COM_UNLOCK(sc);
return (0); return (0);
} }
if (ISSET(sr0, SR0_EIF))
/* XXX silently discard error bits */
bus_space_read_4(iot, ioh, SACOM_DR);
if (ISSET(sr0, SR0_RBB)) if (ISSET(sr0, SR0_RBB))
bus_space_write_4(iot, ioh, SACOM_SR0, SR0_RBB); bus_space_write_4(iot, ioh, SACOM_SR0, SR0_RBB);
if (ISSET(sr1, SR0_REB)) { if (ISSET(sr0, SR0_REB)) {
bus_space_write_4(iot, ioh, SACOM_SR0, SR0_REB); bus_space_write_4(iot, ioh, SACOM_SR0, SR0_REB);
#if defined(DDB) || defined(KGDB) #if defined(DDB) || defined(KGDB)
#ifndef DDB_BREAK_CHAR #ifndef DDB_BREAK_CHAR