~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/parisc/kernel/module.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
#include <linux/string.h>
62
62
#include <linux/kernel.h>
63
63
#include <linux/bug.h>
 
64
#include <linux/mm.h>
64
65
#include <linux/slab.h>
65
66
 
 
67
#include <asm/pgtable.h>
66
68
#include <asm/unwind.h>
67
69
 
68
70
#if 0
214
216
{
215
217
        if (size == 0)
216
218
                return NULL;
217
 
        return vmalloc(size);
 
219
        /* using RWX means less protection for modules, but it's
 
220
         * easier than trying to map the text, data, init_text and
 
221
         * init_data correctly */
 
222
        return __vmalloc_node_range(size, 1, VMALLOC_START, VMALLOC_END,
 
223
                                    GFP_KERNEL | __GFP_HIGHMEM,
 
224
                                    PAGE_KERNEL_RWX, -1,
 
225
                                    __builtin_return_address(0));
218
226
}
219
227
 
220
228
#ifndef CONFIG_64BIT