summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2004-07-20 02:40:57 +0000
committergrehan <grehan@FreeBSD.org>2004-07-20 02:40:57 +0000
commitf34cff5d80a229bc2a74d693a96b9bfe4866dce0 (patch)
tree09defeed6d50fa5f5b564f0154de64c60a56e84b /sys
parent55d33c6b7dc0f7c039dfb25abdfd9a79be406646 (diff)
downloadFreeBSD-src-f34cff5d80a229bc2a74d693a96b9bfe4866dce0.zip
FreeBSD-src-f34cff5d80a229bc2a74d693a96b9bfe4866dce0.tar.gz
elf_cpu_load_file no longer has an __unused variable. Also, don't
bother syncing the icache for the special case of the kernel (id == 1), since the loader has already done this. __unused use reported by: gallatin
Diffstat (limited to 'sys')
-rw-r--r--sys/powerpc/powerpc/elf_machdep.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/powerpc/powerpc/elf_machdep.c b/sys/powerpc/powerpc/elf_machdep.c
index f8e9405..ae4b219 100644
--- a/sys/powerpc/powerpc/elf_machdep.c
+++ b/sys/powerpc/powerpc/elf_machdep.c
@@ -198,10 +198,11 @@ elf_reloc_local(linker_file_t lf, Elf_Addr relocbase, const void *data,
}
int
-elf_cpu_load_file(linker_file_t lf __unused)
+elf_cpu_load_file(linker_file_t lf)
{
-
- __syncicache(lf->address, lf->size);
+ /* Only sync the cache for non-kernel modules */
+ if (lf->id != 1)
+ __syncicache(lf->address, lf->size);
return (0);
}
OpenPOWER on IntegriCloud