summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/dev
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1999-08-14 03:56:13 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1999-08-14 03:56:13 +0000
commit30d6289f22aae6d83b1051f32b46209236849aa5 (patch)
treeafee30f2c5648c9b794d3fb743310b00614590ff /sys/arch/hppa/dev
parent2f43aee515f10618c511f19eee526aa39847d94c (diff)
clock_intr()
Diffstat (limited to 'sys/arch/hppa/dev')
-rw-r--r--sys/arch/hppa/dev/clock.c33
1 files changed, 32 insertions, 1 deletions
diff --git a/sys/arch/hppa/dev/clock.c b/sys/arch/hppa/dev/clock.c
index 7a2f8040744..5feeab70369 100644
--- a/sys/arch/hppa/dev/clock.c
+++ b/sys/arch/hppa/dev/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.4 1999/06/24 00:10:56 mickey Exp $ */
+/* $OpenBSD: clock.c,v 1.5 1999/08/14 03:56:12 mickey Exp $ */
/*
* Copyright (c) 1998,1999 Michael Shalayeff
@@ -45,6 +45,13 @@
#include <machine/cpufunc.h>
#include <machine/autoconf.h>
+#if defined(DDB)
+#include <vm/vm.h>
+#include <machine/db_machdep.h>
+#include <ddb/db_sym.h>
+#include <ddb/db_extern.h>
+#endif
+
struct timeval time;
void startrtclock __P((void));
@@ -68,6 +75,30 @@ cpu_initclocks()
mtctl(time_inval + cpu_hzticks, CR_ITMR);
}
+int
+clock_intr (v)
+ void *v;
+{
+ struct trapframe *frame = v;
+
+/* printf ("#"); */
+
+ /* printf ("clock int 0x%x @ 0x%x for %p\n", t,
+ frame->tf_iioq_head, curproc); */
+
+ cpu_initclocks();
+ hardclock(frame);
+
+#if 0
+ ddb_regs = *frame;
+ db_show_regs(NULL, 0, 0, NULL);
+#endif
+
+ /* printf ("clock out 0x%x\n", t); */
+
+ return 1;
+}
+
/*
* initialize the system time from the time of day clock