summaryrefslogtreecommitdiff
path: root/sys/kern/kern_stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_stub.c')
-rw-r--r--sys/kern/kern_stub.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/sys/kern/kern_stub.c b/sys/kern/kern_stub.c
index 65688e2..5a53cc1 100644
--- a/sys/kern/kern_stub.c
+++ b/sys/kern/kern_stub.c
@@ -30,6 +30,39 @@
#include <sys/device.h>
#include <sys/types.h>
#include <sys/errno.h>
+#include <sys/syslog.h>
+#include <sys/proc.h>
+#include <sys/signal.h>
+
+void
+sigfpe_default(int signo)
+{
+ static struct proc *td;
+
+ td = this_td();
+ kprintf("Floating point exception (pid=%d)\n", td->pid);
+ exit1(td);
+}
+
+void
+sigkill_default(int signo)
+{
+ static struct proc *td;
+
+ td = this_td();
+ kprintf("Terminated (pid=%d)\n", td->pid);
+ exit1(td);
+}
+
+void
+sigsegv_default(int signo)
+{
+ static struct proc *td;
+
+ td = this_td();
+ kprintf("Segmentation fault (pid=%d)\n", td->pid);
+ exit1(td);
+}
int
dev_noread(void)