summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>2008-09-24 01:06:11 +0000
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>2008-09-24 01:06:11 +0000
commita63c2f9df09939b5cb2315f9a1a9883ffed9ed45 (patch)
tree4097ee34fd585cd5232d2a49f0b5ff9b4ee2fc21
parent4c01c0b965cab53171dda3e7f7c4c8fc406f5201 (diff)
Notes
-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 21a477e9b937..434dcec63416 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