From 15eaba378c52746edf227a72bb0a82ac6561d5c0 Mon Sep 17 00:00:00 2001 From: eeh Date: Fri, 29 Sep 2000 00:27:13 +0000 Subject: [PATCH] Only call pcons_dopoll() if there's a pcons device. --- sys/arch/sparc64/sparc64/intr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/arch/sparc64/sparc64/intr.c b/sys/arch/sparc64/sparc64/intr.c index 86ce9988c8c9..291911eb089d 100644 --- a/sys/arch/sparc64/sparc64/intr.c +++ b/sys/arch/sparc64/sparc64/intr.c @@ -1,4 +1,4 @@ -/* $NetBSD: intr.c,v 1.33 2000/09/28 15:38:49 eeh Exp $ */ +/* $NetBSD: intr.c,v 1.34 2000/09/29 00:27:13 eeh Exp $ */ /* * Copyright (c) 1992, 1993 @@ -45,6 +45,7 @@ */ #include "opt_ddb.h" +#include "pcons.h" #include #include @@ -130,9 +131,11 @@ int softintr(fp) void *fp; { +#if NPCONS >0 extern void pcons_dopoll __P((void)); pcons_dopoll(); +#endif return (1); }