From a63c2f9df09939b5cb2315f9a1a9883ffed9ed45 Mon Sep 17 00:00:00 2001 From: Nathan Whitehorn Date: Wed, 24 Sep 2008 01:06:11 +0000 Subject: 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. --- lib/libc/powerpc/gen/syncicache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 #include -#ifndef _KERNEL +#ifdef _STANDALONE int cacheline_size = 32; #endif #if !defined(_KERNEL) && !defined(_STANDALONE) #include +int cacheline_size = 0; + static void getcachelinesize(void); static void -- cgit v1.2.3