Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbsh5 Add needs-flag to sysfpga, and check it befo...



details:   https://anonhg.NetBSD.org/src/rev/1555de416d89
branches:  trunk
changeset: 537662:1555de416d89
user:      scw <scw%NetBSD.org@localhost>
date:      Fri Oct 04 09:24:52 2002 +0000

description:
Add needs-flag to sysfpga, and check it before calling sysfpga_nmi_clear().

diffstat:

 sys/arch/evbsh5/conf/files.evbsh5 |  4 ++--
 sys/arch/evbsh5/evbsh5/machdep.c  |  6 ++++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (44 lines):

diff -r 7bb65e77891e -r 1555de416d89 sys/arch/evbsh5/conf/files.evbsh5
--- a/sys/arch/evbsh5/conf/files.evbsh5 Fri Oct 04 09:23:27 2002 +0000
+++ b/sys/arch/evbsh5/conf/files.evbsh5 Fri Oct 04 09:24:52 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.evbsh5,v 1.4 2002/09/28 11:16:38 scw Exp $
+#      $NetBSD: files.evbsh5,v 1.5 2002/10/04 09:24:52 scw Exp $
 
 # Config file for SuperH CAYMAN SH5 Evaluation Board
 
@@ -15,7 +15,7 @@
 
 device sysfpga { }
 attach sysfpga at femi
-file   arch/evbsh5/dev/sysfpga.c               sysfpga
+file   arch/evbsh5/dev/sysfpga.c               sysfpga         needs-flag
 
 device superio {[offset=-1], [irq=-1]}: isabus
 attach superio at sysfpga
diff -r 7bb65e77891e -r 1555de416d89 sys/arch/evbsh5/evbsh5/machdep.c
--- a/sys/arch/evbsh5/evbsh5/machdep.c  Fri Oct 04 09:23:27 2002 +0000
+++ b/sys/arch/evbsh5/evbsh5/machdep.c  Fri Oct 04 09:24:52 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.5 2002/09/22 20:52:12 scw Exp $  */
+/*     $NetBSD: machdep.c,v 1.6 2002/10/04 09:24:53 scw Exp $  */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -38,6 +38,7 @@
 #include "opt_sh5_debug.h"
 #include "opt_sh5_cpu.h"
 #include "dtfcons.h"
+#include "sysfpga.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -365,6 +366,7 @@
 void
 sh5_nmi_clear(void)
 {
-
+#if NSYSFPGA > 0
        sysfpga_nmi_clear();
+#endif
 }



Home | Main Index | Thread Index | Old Index