linux-mips-fnet
[Top] [All Lists]

modules in kernel 2.2.14

To: "linux-mips@fnet.fr" <linux-mips@fnet.fr>
Subject: modules in kernel 2.2.14
From: Rabeeh Khoury <rabeeh@galileo.co.il>
Date: Thu, 07 Sep 2000 14:25:20 -0400
Reply-to: rabeeh@galileo.co.il
Sender: rabeeh@galileo.co.il
Hi All

I'm running kernel 2.2.14 and i'm trying inserting modules.

In the file kernel/module.c, function sys_create_module calles
module_map which 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.

my work around was defining the following in kernel/module.c

#define module_map      kmalloc
#define module_unmap    kfree

and it worked fine.

Is this work around sufficient ?

p.s.  module_map and module_unmap  is defined in include/asm/pgtable.h
as the following :
#define module_map      vmalloc
#define module_unmap    vfree


Regards,
Rabeeh

Attachment: rabeeh.vcf
Description: Card for Rabeeh Khoury

<Prev in Thread] Current Thread [Next in Thread>