summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-04-15 15:45:25 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-04-15 15:45:25 +0000
commit1c0c19851e473e682e1dfa5316f9f24801623be7 (patch)
tree82d42b7b8b9e04e0aa6f1f58ca68d9dbc21c2a4b /sys/arch/mvme88k/dev
parent303b361bb1fa082b2d6a562f16ca7bb7b5172fdd (diff)
Clean up <machine/mvme188.h> out of duplicate defines, sort them by relevance,
add more comments.
Diffstat (limited to 'sys/arch/mvme88k/dev')
-rw-r--r--sys/arch/mvme88k/dev/syscon.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/sys/arch/mvme88k/dev/syscon.c b/sys/arch/mvme88k/dev/syscon.c
index 4a09e3998fd..bc02b437717 100644
--- a/sys/arch/mvme88k/dev/syscon.c
+++ b/sys/arch/mvme88k/dev/syscon.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: syscon.c,v 1.23 2005/07/18 02:43:25 fgsch Exp $ */
+/* $OpenBSD: syscon.c,v 1.24 2006/04/15 15:45:21 miod Exp $ */
/*
* Copyright (c) 1999 Steve Murphree, Jr.
* All rights reserved.
@@ -175,8 +175,8 @@ int
sysconabort(eframe)
void *eframe;
{
- ISR_RESET_NMI;
- nmihand((struct frame *)eframe);
+ *(volatile u_int32_t *)MVME188_CLRINT = ISTATE_ABORT;
+ nmihand(eframe);
return (1);
}
@@ -184,8 +184,8 @@ int
sysconsysfail(eframe)
void *eframe;
{
- ISR_RESET_SYSFAIL;
- nmihand((struct frame *)eframe);
+ *(volatile u_int32_t *)MVME188_CLRINT = ISTATE_SYSFAIL;
+ printf("WARNING: SYSFAIL* ASSERTED\n");
return (1);
}
@@ -193,8 +193,8 @@ int
sysconacfail(eframe)
void *eframe;
{
- ISR_RESET_ACFAIL;
- nmihand((struct frame *)eframe);
+ *(volatile u_int32_t *)MVME188_CLRINT = ISTATE_ACFAIL;
+ printf("WARNING: ACFAIL* ASSERTED\n");
return (1);
}
@@ -202,6 +202,7 @@ int
sysconm188(eframe)
void *eframe;
{
- printf("MVME188 interrupting?\n");
+ /* shouldn't happen! */
+ printf("MVME188: self-inflicted interrupt\n");
return (1);
}