summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/dev/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/hppa/dev/clock.c')
-rw-r--r--sys/arch/hppa/dev/clock.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/hppa/dev/clock.c b/sys/arch/hppa/dev/clock.c
index e9b6ec902ec..e11c945c1b1 100644
--- a/sys/arch/hppa/dev/clock.c
+++ b/sys/arch/hppa/dev/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.17 2002/11/27 21:47:14 mickey Exp $ */
+/* $OpenBSD: clock.c,v 1.18 2003/10/05 14:13:28 mickey Exp $ */
/*
* Copyright (c) 1998,1999 Michael Shalayeff
@@ -55,7 +55,11 @@
void
cpu_initclocks()
{
- CPU_CLOCKUPDATE();
+ register_t __itmr;
+ __asm __volatile("mfctl %%cr16, %0" : "=r" (__itmr));
+ cpu_itmr = __itmr;
+ __itmr += cpu_hzticks;
+ __asm __volatile("mtctl %0, %%cr16" :: "r" (__itmr));
}
/*