From 30d6289f22aae6d83b1051f32b46209236849aa5 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Sat, 14 Aug 1999 03:56:13 +0000 Subject: clock_intr() --- sys/arch/hppa/dev/clock.c | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) (limited to 'sys/arch/hppa') 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 #include +#if defined(DDB) +#include +#include +#include +#include +#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 -- cgit v1.2.3