diff options
author | Chris Zankel <chris@zankel.net> | 2008-01-07 19:42:21 -0500 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2008-02-13 20:23:26 -0500 |
commit | 3b4a49e21b0d8a69629623815a8caff3eb4cf9f7 (patch) | |
tree | 28caaf5e577264a6edcbcd04141180fabaabe19c /arch/xtensa/kernel | |
parent | 3e92501a4e10e640786de10786c434834a0c1651 (diff) |
[XTENSA] Fix modules for non-exec processor configurations
We need to use vmalloc_exec for module loading. Also remove
the definitions MODULE_START and MODULE_END, which wasn't
used, and increase the VMALLOC memory range accordingly.
Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa/kernel')
-rw-r--r-- | arch/xtensa/kernel/module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/kernel/module.c b/arch/xtensa/kernel/module.c index ddf14dcf2ad9..3981a466c779 100644 --- a/arch/xtensa/kernel/module.c +++ b/arch/xtensa/kernel/module.c | |||
@@ -28,7 +28,7 @@ void *module_alloc(unsigned long size) | |||
28 | { | 28 | { |
29 | if (size == 0) | 29 | if (size == 0) |
30 | return NULL; | 30 | return NULL; |
31 | return vmalloc(size); | 31 | return vmalloc_exec(size); |
32 | } | 32 | } |
33 | 33 | ||
34 | void module_free(struct module *mod, void *module_region) | 34 | void module_free(struct module *mod, void *module_region) |