Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat update emul alarm syscalls to recent timer changes
details: https://anonhg.NetBSD.org/src/rev/341cae189394
branches: trunk
changeset: 543205:341cae189394
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Wed Feb 19 11:23:53 2003 +0000
description:
update emul alarm syscalls to recent timer changes
problem encountered by Luke Mewburn for linux emul, problem spot
found by Enami Tsugutomo
diffstat:
sys/compat/hpux/hpux_compat.c | 7 +++++--
sys/compat/linux/common/linux_misc_notalpha.c | 7 +++++--
2 files changed, 10 insertions(+), 4 deletions(-)
diffs (58 lines):
diff -r fdad76e14c35 -r 341cae189394 sys/compat/hpux/hpux_compat.c
--- a/sys/compat/hpux/hpux_compat.c Wed Feb 19 10:48:00 2003 +0000
+++ b/sys/compat/hpux/hpux_compat.c Wed Feb 19 11:23:53 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hpux_compat.c,v 1.61 2003/01/18 07:36:56 thorpej Exp $ */
+/* $NetBSD: hpux_compat.c,v 1.62 2003/02/19 11:23:53 jdolecek Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -47,7 +47,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hpux_compat.c,v 1.61 2003/01/18 07:36:56 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpux_compat.c,v 1.62 2003/02/19 11:23:53 jdolecek Exp $");
#if defined(_KERNEL_OPT)
#include "opt_sysv.h"
@@ -1245,7 +1245,10 @@
ptp = pool_get(&ptimer_pool, PR_WAITOK);
ptp->pt_ev.sigev_notify = SIGEV_SIGNAL;
ptp->pt_ev.sigev_signo = SIGALRM;
+ ptp->pt_overruns = 0;
+ ptp->pt_proc = p;
ptp->pt_type = CLOCK_REALTIME;
+ ptp->pt_entry = CLOCK_REALTIME;
p->p_timers->pts_timers[ITIMER_REAL] = ptp;
callout_init(&ptp->pt_ch);
}
diff -r fdad76e14c35 -r 341cae189394 sys/compat/linux/common/linux_misc_notalpha.c
--- a/sys/compat/linux/common/linux_misc_notalpha.c Wed Feb 19 10:48:00 2003 +0000
+++ b/sys/compat/linux/common/linux_misc_notalpha.c Wed Feb 19 11:23:53 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_misc_notalpha.c,v 1.64 2003/01/18 08:02:54 thorpej Exp $ */
+/* $NetBSD: linux_misc_notalpha.c,v 1.65 2003/02/19 11:23:54 jdolecek Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_misc_notalpha.c,v 1.64 2003/01/18 08:02:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_misc_notalpha.c,v 1.65 2003/02/19 11:23:54 jdolecek Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -145,7 +145,10 @@
ptp = pool_get(&ptimer_pool, PR_WAITOK);
ptp->pt_ev.sigev_notify = SIGEV_SIGNAL;
ptp->pt_ev.sigev_signo = SIGALRM;
+ ptp->pt_overruns = 0;
+ ptp->pt_proc = p;
ptp->pt_type = CLOCK_REALTIME;
+ ptp->pt_entry = CLOCK_REALTIME;
callout_init(&ptp->pt_ch);
}
Home |
Main Index |
Thread Index |
Old Index