summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2008-09-24 01:06:11 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2008-09-24 01:06:11 +0000
commit1a71eb5c5089d6d5a0e78d0635d718b48223f717 (patch)
tree4097ee34fd585cd5232d2a49f0b5ff9b4ee2fc21 /lib
parent2a5e536b9ea8f6632dbd73f3f2eb68f659c6167a (diff)
downloadFreeBSD-src-1a71eb5c5089d6d5a0e78d0635d718b48223f717.zip
FreeBSD-src-1a71eb5c5089d6d5a0e78d0635d718b48223f717.tar.gz
Fix some ifdef logic in the libc syncicache() bit that I somehow missed in the
last commit. Now it really can use a runtime-set cacheline size.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/powerpc/gen/syncicache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/powerpc/gen/syncicache.c b/lib/libc/powerpc/gen/syncicache.c
index 21a477e..434dcec 100644
--- a/lib/libc/powerpc/gen/syncicache.c
+++ b/lib/libc/powerpc/gen/syncicache.c
@@ -47,13 +47,15 @@ static const char rcsid[] =
#include <machine/cpu.h>
#include <machine/md_var.h>
-#ifndef _KERNEL
+#ifdef _STANDALONE
int cacheline_size = 32;
#endif
#if !defined(_KERNEL) && !defined(_STANDALONE)
#include <stdlib.h>
+int cacheline_size = 0;
+
static void getcachelinesize(void);
static void
OpenPOWER on IntegriCloud