Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/atari/atari Add an NMI handler for the Milan.



details:   https://anonhg.NetBSD.org/src/rev/de805903d1e4
branches:  trunk
changeset: 509908:de805903d1e4
user:      leo <leo%NetBSD.org@localhost>
date:      Tue May 15 13:57:43 2001 +0000

description:
Add an NMI handler for the Milan.

diffstat:

 sys/arch/atari/atari/machdep.c |  26 +++++++++++++++++++++++++-
 1 files changed, 25 insertions(+), 1 deletions(-)

diffs (51 lines):

diff -r f4a030ea6840 -r de805903d1e4 sys/arch/atari/atari/machdep.c
--- a/sys/arch/atari/atari/machdep.c    Tue May 15 13:53:20 2001 +0000
+++ b/sys/arch/atari/atari/machdep.c    Tue May 15 13:57:43 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.108 2001/04/24 04:30:55 thorpej Exp $    */
+/*     $NetBSD: machdep.c,v 1.109 2001/05/15 13:57:43 leo Exp $        */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -44,6 +44,7 @@
 
 #include "opt_ddb.h"
 #include "opt_compat_netbsd.h"
+#include "opt_mbtype.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -97,6 +98,10 @@
 void   straymfpint __P((int, u_short));
 void   straytrap __P((int, u_short));
 
+#ifdef _MILANHW_
+void   nmihandler __P((void));
+#endif
+
 vm_map_t exec_map = NULL;  
 vm_map_t mb_map = NULL;
 vm_map_t phys_map = NULL;
@@ -976,3 +981,22 @@
 #endif
        return(error);
 }
+
+#ifdef _MILANHW_
+
+/*
+ * Currently the only source of NMI interrupts on the Milan is the PLX9080.
+ * On access errors to the PCI bus, an NMI is generated. This NMI is shorted
+ * in locore in case of a PCI config cycle to a non-existing address to allow
+ * for probes. On other occaisions, it ShouldNotHappen(TM).
+ * Note: The handler in locore clears the errors, to make further PCI access
+ * possible.
+ */
+void
+nmihandler()
+{
+       extern unsigned long    plx_status;
+
+       printf("nmihandler: plx_status = 0x%08lx\n", plx_status);
+}
+#endif



Home | Main Index | Thread Index | Old Index