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 Fix interrupt handling somewhat so th...
details: https://anonhg.NetBSD.org/src/rev/9c705b0313fe
branches: trunk
changeset: 507037:9c705b0313fe
user: toshii <toshii%NetBSD.org@localhost>
date: Mon Mar 12 03:27:18 2001 +0000
description:
Fix interrupt handling somewhat so that break signal gets DDB.
diffstat:
sys/arch/hpcarm/sa11x0/sa11x0_com.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r f97d8832b51c -r 9c705b0313fe sys/arch/hpcarm/sa11x0/sa11x0_com.c
--- a/sys/arch/hpcarm/sa11x0/sa11x0_com.c Mon Mar 12 03:20:10 2001 +0000
+++ b/sys/arch/hpcarm/sa11x0/sa11x0_com.c Mon Mar 12 03:27:18 2001 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index