summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2020-07-19 20:35:55 +0000
committerkettenis <kettenis@openbsd.org>2020-07-19 20:35:55 +0000
commit703c3386b693d548e270e8045f24b6f38e94529e (patch)
tree8bdbb4da53dd49e96dbc9ee43312b722a4b22c04 /sys
parentMove the adapter related items (luns, adapter, adapter_target, (diff)
downloadwireguard-openbsd-703c3386b693d548e270e8045f24b6f38e94529e.tar.xz
wireguard-openbsd-703c3386b693d548e270e8045f24b6f38e94529e.zip
Disable userland timecounters for now. On some (all?) sun4u machines this
triggers an illegal instruction exception presumably because unpriviliged access to the cycle counters is prohibited.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc64/sparc64/clock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc64/sparc64/clock.c b/sys/arch/sparc64/sparc64/clock.c
index f8c43cd87c7..239bf9d8697 100644
--- a/sys/arch/sparc64/sparc64/clock.c
+++ b/sys/arch/sparc64/sparc64/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.63 2020/07/08 09:20:28 kettenis Exp $ */
+/* $OpenBSD: clock.c,v 1.64 2020/07/19 20:35:55 kettenis Exp $ */
/* $NetBSD: clock.c,v 1.41 2001/07/24 19:29:25 eeh Exp $ */
/*
@@ -109,14 +109,14 @@ struct cfdriver clock_cd = {
u_int tick_get_timecount(struct timecounter *);
struct timecounter tick_timecounter = {
- tick_get_timecount, NULL, ~0u, 0, "tick", 0, NULL, TC_TICK
+ tick_get_timecount, NULL, ~0u, 0, "tick", 0, NULL, 0
};
u_int sys_tick_get_timecount(struct timecounter *);
struct timecounter sys_tick_timecounter = {
sys_tick_get_timecount, NULL, ~0u, 0, "sys_tick", 1000, NULL,
- TC_SYS_TICK
+ 0
};
/*