diff --git a/sys/arch/evbsh5/dev/sysfpga.c b/sys/arch/evbsh5/dev/sysfpga.c index 9f353098ad9c..7055daaeaf6b 100644 --- a/sys/arch/evbsh5/dev/sysfpga.c +++ b/sys/arch/evbsh5/dev/sysfpga.c @@ -1,4 +1,4 @@ -/* $NetBSD: sysfpga.c,v 1.3 2002/08/31 09:30:02 scw Exp $ */ +/* $NetBSD: sysfpga.c,v 1.4 2002/09/22 20:51:09 scw Exp $ */ /* * Copyright 2002 Wasabi Systems, Inc. @@ -331,3 +331,10 @@ sysfpga_intr_disestablish(void *cookie) ih->ih_func = NULL; } + +void +sysfpga_nmi_clear(void) +{ + + sysfpga_reg_write(sysfpga_sc, SYSFPGA_REG_NMISR, 0); +} diff --git a/sys/arch/evbsh5/dev/sysfpgavar.h b/sys/arch/evbsh5/dev/sysfpgavar.h index cd06c8695ea6..695034726b16 100644 --- a/sys/arch/evbsh5/dev/sysfpgavar.h +++ b/sys/arch/evbsh5/dev/sysfpgavar.h @@ -1,4 +1,4 @@ -/* $NetBSD: sysfpgavar.h,v 1.2 2002/08/30 10:59:39 scw Exp $ */ +/* $NetBSD: sysfpgavar.h,v 1.3 2002/09/22 20:51:09 scw Exp $ */ /* * Copyright 2002 Wasabi Systems, Inc. @@ -73,5 +73,6 @@ struct evcnt; extern struct evcnt *sysfpga_intr_evcnt(int); extern void *sysfpga_intr_establish(int, int, int, int (*)(void *), void *); extern void sysfpga_intr_disestablish(void *); +extern void sysfpga_nmi_clear(void); #endif /* _SH5_SYSFPGAVAR_H */