access to %tick on sparc64 is no longer privileged

This commit is contained in:
naddy 2012-11-14 19:56:53 +00:00
parent b045b75d4e
commit 69bdb11e1c
2 changed files with 2 additions and 17 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.23 2012/10/23 20:44:03 kirby Exp $
# $OpenBSD: Makefile,v 1.24 2012/11/14 19:56:53 naddy Exp $
COMMENT-main= C routines for computing the Discrete Fourier Transform
COMMENT-common= common files for the fftw3 packages
@ -10,7 +10,7 @@ FULLPKGNAME-main= fftw3-${V}
# XXX set it to its default value so that bsd.port.mk won't whine
FULLPKGPATH-main= math/fftw3,-main${FLAVOR_EXT:S/-/,/g}
FULLPKGNAME-common= fftw3-common-${V}
REVISION-main= 1
REVISION-main= 2
REVISION-common=0
SHARED_LIBS= fftw3 6.0 \
fftw3f 6.0 \

View File

@ -1,15 +0,0 @@
$OpenBSD: patch-kernel_cycle_h,v 1.1 2011/09/08 14:47:31 naddy Exp $
Access to %tick remains privileged on OpenBSD.
--- kernel/cycle.h.orig Fri Aug 26 23:20:03 2011
+++ kernel/cycle.h Fri Aug 26 23:20:22 2011
@@ -402,7 +402,7 @@ INLINE_ELAPSED(__inline__)
#endif
/*----------------------------------------------------------------*/
-#if defined(__GNUC__) && defined(__sparc_v9__) && !defined(HAVE_TICK_COUNTER)
+#if defined(__GNUC__) && defined(__sparc_v9__) && !defined(__OpenBSD__) && !defined(HAVE_TICK_COUNTER)
typedef unsigned long ticks;
static __inline__ ticks getticks(void)