diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2008-09-24 01:06:11 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2008-09-24 01:06:11 +0000 |
commit | 1a71eb5c5089d6d5a0e78d0635d718b48223f717 (patch) | |
tree | 4097ee34fd585cd5232d2a49f0b5ff9b4ee2fc21 /lib/libc/powerpc/gen/syncicache.c | |
parent | 2a5e536b9ea8f6632dbd73f3f2eb68f659c6167a (diff) | |
download | FreeBSD-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/libc/powerpc/gen/syncicache.c')
-rw-r--r-- | lib/libc/powerpc/gen/syncicache.c | 4 |
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 |