diff options
| author | Peter Grehan <grehan@FreeBSD.org> | 2005-05-24 21:43:49 +0000 |
|---|---|---|
| committer | Peter Grehan <grehan@FreeBSD.org> | 2005-05-24 21:43:49 +0000 |
| commit | 530d1c764613c07d0c46414a99c29bbef630b637 (patch) | |
| tree | 865018a172213cb7bc745c41e1f841c25a101047 /sys/boot | |
| parent | fdc05f791377cb68d0b3551e0c3569b027238a68 (diff) | |
Notes
Diffstat (limited to 'sys/boot')
| -rw-r--r-- | sys/boot/ofw/libofw/elf_freebsd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/boot/ofw/libofw/elf_freebsd.c b/sys/boot/ofw/libofw/elf_freebsd.c index 4a8855b597dce..624e9fae1aabe 100644 --- a/sys/boot/ofw/libofw/elf_freebsd.c +++ b/sys/boot/ofw/libofw/elf_freebsd.c @@ -54,7 +54,12 @@ __elfN(ofw_loadfile)(char *filename, u_int64_t dest, return (r); #if defined(__powerpc__) - __syncicache((void *) (*result)->f_addr, (*result)->f_size); + /* + * No need to sync the icache for modules: this will + * be done by the kernel after relocation. + */ + if (!strcmp((*result)->f_type, "elf kernel")) + __syncicache((void *) (*result)->f_addr, (*result)->f_size); #endif return (0); } |
