From 0da6aaa8f71ce409bea7f0ede1f94c5e7aae31bf Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 15 Apr 2008 22:39:27 +0000 Subject: 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. --- sys/arch/sparc64/include/ctlreg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/sparc64/include') 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_ */ -- cgit v1.2.3