Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/usermode/usermode Use thunk's version of sigemptyset()



details:   https://anonhg.NetBSD.org/src/rev/42523e818d33
branches:  trunk
changeset: 769271:42523e818d33
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Mon Sep 05 12:04:40 2011 +0000

description:
Use thunk's version of sigemptyset()

diffstat:

 sys/arch/usermode/usermode/trap.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r b3c5754eb031 -r 42523e818d33 sys/arch/usermode/usermode/trap.c
--- a/sys/arch/usermode/usermode/trap.c Mon Sep 05 12:04:03 2011 +0000
+++ b/sys/arch/usermode/usermode/trap.c Mon Sep 05 12:04:40 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.25 2011/09/05 11:56:52 reinoud Exp $ */
+/* $NetBSD: trap.c,v 1.26 2011/09/05 12:04:40 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2011 Reinoud Zandijk <reinoud%netbsd.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.25 2011/09/05 11:56:52 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.26 2011/09/05 12:04:40 reinoud Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -78,9 +78,9 @@
                panic("can't set alternate stacksize : %d",
                    thunk_geterrno());
 
-       sigemptyset(&sa.sa_mask);
        sa.sa_flags = SA_RESTART | SA_SIGINFO | SA_ONSTACK;
        sa.sa_sigaction = mem_access_handler;
+       thunk_sigemptyset(&sa.sa_mask);
        thunk_sigaddset(&sa.sa_mask, SIGALRM);
        if (thunk_sigaction(SIGSEGV, &sa, NULL) == -1)
                panic("couldn't register SIGSEGV handler : %d",
@@ -88,9 +88,9 @@
        if (thunk_sigaction(SIGBUS, &sa, NULL) == -1)
                panic("couldn't register SIGBUS handler : %d", thunk_geterrno());
 
-       sigemptyset(&sa.sa_mask);
        sa.sa_flags = SA_RESTART | SA_SIGINFO | SA_ONSTACK;
        sa.sa_sigaction = illegal_instruction_handler;
+       thunk_sigemptyset(&sa.sa_mask);
        thunk_sigaddset(&sa.sa_mask, SIGALRM);
        if (thunk_sigaction(SIGILL, &sa, NULL) == -1)
                panic("couldn't register SIGILL handler : %d", thunk_geterrno());



Home | Main Index | Thread Index | Old Index