Module Name: src
Committed By: reinoud
Date: Tue Sep 13 10:42:34 UTC 2011
Modified Files:
src/sys/arch/usermode/dev: clock.c
Log Message:
Forgot the clock
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/usermode/dev/clock.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/dev/clock.c
diff -u src/sys/arch/usermode/dev/clock.c:1.17 src/sys/arch/usermode/dev/clock.c:1.18
--- src/sys/arch/usermode/dev/clock.c:1.17 Mon Sep 12 12:25:45 2011
+++ src/sys/arch/usermode/dev/clock.c Tue Sep 13 10:42:34 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.17 2011/09/12 12:25:45 reinoud Exp $ */
+/* $NetBSD: clock.c,v 1.18 2011/09/13 10:42:34 reinoud Exp $ */
/*-
* Copyright (c) 2007 Jared D. McNeill <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.17 2011/09/12 12:25:45 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.18 2011/09/13 10:42:34 reinoud Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -86,7 +86,6 @@
{
static struct sigaction sa;
clock_softc_t *sc = device_private(self);
- stack_t ss;
long tcres;
aprint_naive("\n");
@@ -100,18 +99,10 @@
sc->sc_todr.todr_gettime = clock_todr_gettime;
todr_attach(&sc->sc_todr);
- ss.ss_sp = thunk_malloc(SIGSTKSZ);
- if (ss.ss_sp == NULL)
- panic("%s: couldn't allocate signal stack", __func__);
- ss.ss_size = SIGSTKSZ;
- ss.ss_flags = 0;
- if (thunk_sigaltstack(&ss, NULL) == -1)
- panic("%s: couldn't setup signal stack", __func__);
-
memset(&sa, 0, sizeof(sa));
sigfillset(&sa.sa_mask);
sa.sa_handler = clock_signal;
- sa.sa_flags = 0; // SA_ONSTACK;
+ sa.sa_flags = 0;
if (thunk_sigaction(SIGALRM, &sa, NULL) == -1)
panic("couldn't register SIGALRM handler : %d",
thunk_geterrno());