modules in kernel 2.2.14
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines · Rabeeh Khoury
I'm running kernel 2.2.14 and i'm trying inserting modules.
In the file
kernel/module.c, functionsys_create_modulecallesmodule_mapwhich is defined as vmalloc.calling vmalloc returns a pointer to a virtual memory address in the memory mapped area (in my case
0xc0000000) and the kernel had an exception for accessing this address.
Which means that your TLB exception handlers, cache handling or something in that area is busted, I recommend to fix that first.
Quoted 8 lines
my work around was defining the following in
kernel/module.c#define
module_mapkmalloc
#definemodule_unmapkfreeand it worked fine.
Is this work around sufficient ?
It's ok but can be pretty wasteful on memory. It also will only work for modules upto 128kb size. Also if choose this fix you should delete -mlong-calls from MODFLAGS in arch/mips/Makefile as an additional optimization.
Ralf