diff options
author | grehan <grehan@FreeBSD.org> | 2004-07-20 02:40:57 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2004-07-20 02:40:57 +0000 |
commit | f34cff5d80a229bc2a74d693a96b9bfe4866dce0 (patch) | |
tree | 09defeed6d50fa5f5b564f0154de64c60a56e84b /sys/powerpc | |
parent | 55d33c6b7dc0f7c039dfb25abdfd9a79be406646 (diff) | |
download | FreeBSD-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/powerpc')
-rw-r--r-- | sys/powerpc/powerpc/elf_machdep.c | 7 |
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); } |