Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/usermode/dev Like the others, let the clock signal ...



details:   https://anonhg.NetBSD.org/src/rev/ff00393a1cb7
branches:  trunk
changeset: 769631:ff00393a1cb7
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Fri Sep 16 16:24:01 2011 +0000

description:
Like the others, let the clock signal restart calls

diffstat:

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

diffs (30 lines):

diff -r dff7ab92af7d -r ff00393a1cb7 sys/arch/usermode/dev/clock.c
--- a/sys/arch/usermode/dev/clock.c     Fri Sep 16 16:13:41 2011 +0000
+++ b/sys/arch/usermode/dev/clock.c     Fri Sep 16 16:24:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.18 2011/09/13 10:42:34 reinoud Exp $ */
+/* $NetBSD: clock.c,v 1.19 2011/09/16 16:24:01 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.18 2011/09/13 10:42:34 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.19 2011/09/16 16:24:01 reinoud Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -100,9 +100,9 @@
        todr_attach(&sc->sc_todr);
 
        memset(&sa, 0, sizeof(sa));
-       sigfillset(&sa.sa_mask);
+       thunk_sigemptyset(&sa.sa_mask);
        sa.sa_handler = clock_signal;
-       sa.sa_flags = 0;
+       sa.sa_flags = SA_RESTART | SA_SIGINFO;
        if (thunk_sigaction(SIGALRM, &sa, NULL) == -1)
                panic("couldn't register SIGALRM handler : %d",
                    thunk_geterrno());



Home | Main Index | Thread Index | Old Index