summaryrefslogtreecommitdiff
path: root/sys/modules/panic/Makefile
diff options
context:
space:
mode:
authorjmcneill <jmcneill@NetBSD.org>2011-02-18 01:07:20 +0000
committerjmcneill <jmcneill@NetBSD.org>2011-02-18 01:07:20 +0000
commit7b11d98d75fb129271bcb561b04fc04c3b0b33c3 (patch)
tree99deb847a710fedb08929d15814a8e85f16d36e2 /sys/modules/panic/Makefile
parent47c03ce2d7c552472db0c6c557c09cab3f02ed7b (diff)
add panic.kmod, an easy way to trigger a panic. takes a 'how' argument
to specify how to trigger the panic: modload -s how=panic panic.kmod <-- just calls panic() modload -s how=nullptr panic.kmod <-- null ptr deref if how isn't specified, it defaults to 'panic'. feel free to add more.
Diffstat (limited to 'sys/modules/panic/Makefile')
-rw-r--r--sys/modules/panic/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/modules/panic/Makefile b/sys/modules/panic/Makefile
new file mode 100644
index 00000000000..ccd65ed9ea7
--- /dev/null
+++ b/sys/modules/panic/Makefile
@@ -0,0 +1,8 @@
+# $NetBSD: Makefile,v 1.1 2011/02/18 01:07:20 jmcneill Exp $
+
+.include "../Makefile.inc"
+
+KMOD= panic
+SRCS= panic.c
+
+.include <bsd.kmodule.mk>