Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5e48b88 authored by Michal Simek's avatar Michal Simek
Browse files

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: default avatarMichal Simek <monstr@monstr.eu>
parent ee4bcdf1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
#include <linux/string.h>

#include <asm/pgtable.h>
#include <asm/cacheflush.h>

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