vserver 2.0 rc7
[linux-2.6.git] / arch / m32r / kernel / module.c
index 2d5c384..f6a79a0 100644 (file)
@@ -14,6 +14,8 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
+
+#include <linux/config.h>
 #include <linux/moduleloader.h>
 #include <linux/elf.h>
 #include <linux/vmalloc.h>
@@ -31,7 +33,11 @@ void *module_alloc(unsigned long size)
 {
        if (size == 0)
                return NULL;
+#ifdef CONFIG_MMU
        return vmalloc_exec(size);
+#else
+       return vmalloc(size);
+#endif
 }