Module Name: src
Committed By: thorpej
Date: Tue Jan 16 01:17:59 UTC 2024
Modified Files:
src/sys/arch/news68k/news68k: isr.h
Log Message:
Use m68k_intrvec_intrhand() to implement isrunlink_vectored().
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/news68k/news68k/isr.h
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/news68k/news68k/isr.h
diff -u src/sys/arch/news68k/news68k/isr.h:1.10 src/sys/arch/news68k/news68k/isr.h:1.11
--- src/sys/arch/news68k/news68k/isr.h:1.10 Mon Jan 15 00:35:24 2024
+++ src/sys/arch/news68k/news68k/isr.h Tue Jan 16 01:17:59 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: isr.h,v 1.10 2024/01/15 00:35:24 thorpej Exp $ */
+/* $NetBSD: isr.h,v 1.11 2024/01/16 01:17:59 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -61,8 +61,11 @@ isrlink_vectored(int (*func)(void *), vo
static inline void
isrunlink_vectored(int vec)
{
- /* XXX isrlink_*() functions should return handle. */
- panic("isrunlink_vectored");
+ /* XXX isrlink_vectored() should return a handle. */
+ void *ih = m68k_intrvec_intrhand(vec);
+ if (ih != NULL) {
+ m68k_intr_disestablish(ih);
+ }
}
#endif /* _NEWS68k_ISR_H_ */