From: Michal Simek Date: Fri, 14 May 2010 05:40:46 +0000 (+0200) Subject: microblaze: Fix module loading on system with WB cache X-Git-Tag: Ubuntu-goldfish-3.4.0-4.27~7419^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=a5e48b88da225580394f825ffe67e444b050074b;p=mirror_ubuntu-zesty-kernel.git microblaze: Fix module loading on system with WB cache There is necessary to flush whole dcache. Icache work should be done in kernel/module.c. Signed-off-by: Michal Simek --- diff --git a/arch/microblaze/kernel/module.c b/arch/microblaze/kernel/module.c index cbecf110dc30..0e73f6606547 100644 --- a/arch/microblaze/kernel/module.c +++ b/arch/microblaze/kernel/module.c @@ -16,6 +16,7 @@ #include #include +#include void *module_alloc(unsigned long size) { @@ -151,6 +152,7 @@ int apply_relocate_add(Elf32_Shdr *sechdrs, const char *strtab, int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, struct module *module) { + flush_dcache(); return 0; }