summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-04-15 22:39:27 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-04-15 22:39:27 +0000
commit0da6aaa8f71ce409bea7f0ede1f94c5e7aae31bf (patch)
treeb264adf54fb2da2a3251ed2659882f7e15be9e30 /sys/arch/sparc64/include
parent2176dc4df557ec535a076a6d5d16bf294f08b5df (diff)
Add workaround for UltraSPARC-II errata, where writes to %tick_cmpr would
sometimes fail, which would result in the periodic clock interrupts on a CPU stop. Spotted in a NetBSD commit message, loosely based on code in OpenSolaris.
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r--sys/arch/sparc64/include/ctlreg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/include/ctlreg.h b/sys/arch/sparc64/include/ctlreg.h
index 311eae03e47..e94320a8c8c 100644
--- a/sys/arch/sparc64/include/ctlreg.h
+++ b/sys/arch/sparc64/include/ctlreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ctlreg.h,v 1.16 2008/03/08 19:46:59 kettenis Exp $ */
+/* $OpenBSD: ctlreg.h,v 1.17 2008/04/15 22:39:26 kettenis Exp $ */
/* $NetBSD: ctlreg.h,v 1.28 2001/08/06 23:55:34 eeh Exp $ */
/*
@@ -718,7 +718,7 @@ void flush(void *p)
/* read 64-bit %tick register */
#define tick() (sparc_rdpr(tick) & TICK_TICKS)
-extern void next_tick(long);
+extern void tickcmpr_set(u_int64_t);
#endif /* _LOCORE */
#endif /* _SPARC64_CTLREG_ */