Module Name: src
Committed By: reinoud
Date: Sat Sep 10 10:29:39 UTC 2011
Modified Files:
src/sys/arch/usermode/usermode: trap.c
Log Message:
The illegal instruction handler can exist on the usermodes stack and the
stackframe will disappear when its switched back.
To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/arch/usermode/usermode/trap.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/usermode/usermode/trap.c
diff -u src/sys/arch/usermode/usermode/trap.c:1.38 src/sys/arch/usermode/usermode/trap.c:1.39
--- src/sys/arch/usermode/usermode/trap.c:1.38 Fri Sep 9 12:21:57 2011
+++ src/sys/arch/usermode/usermode/trap.c Sat Sep 10 10:29:39 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.38 2011/09/09 12:21:57 reinoud Exp $ */
+/* $NetBSD: trap.c,v 1.39 2011/09/10 10:29:39 reinoud Exp $ */
/*-
* Copyright (c) 2011 Reinoud Zandijk <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.38 2011/09/09 12:21:57 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.39 2011/09/10 10:29:39 reinoud Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -89,7 +89,7 @@
if (thunk_sigaction(SIGBUS, &sa, NULL) == -1)
panic("couldn't register SIGBUS handler : %d", thunk_geterrno());
- sa.sa_flags = SA_RESTART | SA_SIGINFO | SA_ONSTACK;
+ sa.sa_flags = SA_RESTART | SA_SIGINFO;
sa.sa_sigaction = illegal_instruction_handler;
thunk_sigemptyset(&sa.sa_mask);
thunk_sigaddset(&sa.sa_mask, SIGALRM);