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 Forgot the clock
details: https://anonhg.NetBSD.org/src/rev/1b522cfb3869
branches: trunk
changeset: 769533:1b522cfb3869
user: reinoud <reinoud%NetBSD.org@localhost>
date: Tue Sep 13 10:42:34 2011 +0000
description:
Forgot the clock
diffstat:
sys/arch/usermode/dev/clock.c | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
diffs (46 lines):
diff -r b01210b5d7d4 -r 1b522cfb3869 sys/arch/usermode/dev/clock.c
--- a/sys/arch/usermode/dev/clock.c Tue Sep 13 10:40:26 2011 +0000
+++ b/sys/arch/usermode/dev/clock.c Tue Sep 13 10:42:34 2011 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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());
Home |
Main Index |
Thread Index |
Old Index