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
This commit is contained in:
Peter Grehan 2004-07-20 02:40:57 +00:00
parent fa543780cc
commit 8c18dab95e

View File

@ -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);
}