Module Name:    src
Committed By:   thorpej
Date:           Mon Jan 15 00:25:16 UTC 2024

Modified Files:
        src/sys/arch/m68k/m68k: m68k_intr.c

Log Message:
Declare intrcnt as a u_int array, and add a missing m68k_ih_free() call
in m68k_intr_disestablish().


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/m68k/m68k/m68k_intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/m68k/m68k/m68k_intr.c
diff -u src/sys/arch/m68k/m68k/m68k_intr.c:1.1 src/sys/arch/m68k/m68k/m68k_intr.c:1.2
--- src/sys/arch/m68k/m68k/m68k_intr.c:1.1	Sun Jan 14 22:32:32 2024
+++ src/sys/arch/m68k/m68k/m68k_intr.c	Mon Jan 15 00:25:15 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: m68k_intr.c,v 1.1 2024/01/14 22:32:32 thorpej Exp $	*/
+/*	$NetBSD: m68k_intr.c,v 1.2 2024/01/15 00:25:15 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1996, 2023, 2024 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: m68k_intr.c,v 1.1 2024/01/14 22:32:32 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: m68k_intr.c,v 1.2 2024/01/15 00:25:15 thorpej Exp $");
 
 #define	_M68K_INTR_PRIVATE
 
@@ -70,7 +70,7 @@ extern char intrstub_vectored[];
 /* A dummy event counter where interrupt stats go to die. */
 static struct evcnt bitbucket;
 
-extern int intrcnt[];		/* XXX old-style statistics */
+extern u_int intrcnt[];		/* XXX old-style statistics */
 
 int idepth;
 
@@ -291,6 +291,8 @@ m68k_intr_disestablish(void *v)
 		splx(s);
 	}
 
+	m68k_ih_free(ih);
+
 	return empty;
 }
 

Reply via email to