From 1bb261e173e0859c9b2d239f6d97ffd3872d8e8b Mon Sep 17 00:00:00 2001 From: toshii Date: Mon, 12 Mar 2001 03:27:18 +0000 Subject: [PATCH] Fix interrupt handling somewhat so that break signal gets DDB. --- sys/arch/hpcarm/sa11x0/sa11x0_com.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/arch/hpcarm/sa11x0/sa11x0_com.c b/sys/arch/hpcarm/sa11x0/sa11x0_com.c index e88e542324e5..acd2b54805a8 100644 --- a/sys/arch/hpcarm/sa11x0/sa11x0_com.c +++ b/sys/arch/hpcarm/sa11x0/sa11x0_com.c @@ -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. @@ -1338,9 +1338,12 @@ sacomintr(arg) COM_UNLOCK(sc); 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)) 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); #if defined(DDB) || defined(KGDB) #ifndef DDB_BREAK_CHAR