nommu.c (a7c3e901a46ff54c016d040847eda598a9e3e653) nommu.c (19809c2da28aee5860ad9a2eff760730a0710df0)
1/*
2 * linux/mm/nommu.c
3 *
4 * Replacement code for mm functions to support CPU's that don't
5 * have any form of memory management unit (thus no virtual memory).
6 *
7 * See Documentation/nommu-mmap.txt
8 *

--- 232 unchanged lines hidden (view full) ---

241{
242 return __vmalloc(size, flags, PAGE_KERNEL);
243}
244
245void *vmalloc_user(unsigned long size)
246{
247 void *ret;
248
1/*
2 * linux/mm/nommu.c
3 *
4 * Replacement code for mm functions to support CPU's that don't
5 * have any form of memory management unit (thus no virtual memory).
6 *
7 * See Documentation/nommu-mmap.txt
8 *

--- 232 unchanged lines hidden (view full) ---

241{
242 return __vmalloc(size, flags, PAGE_KERNEL);
243}
244
245void *vmalloc_user(unsigned long size)
246{
247 void *ret;
248
249 ret = __vmalloc(size, GFP_KERNEL | __GFP_HIGHMEM | __GFP_ZERO,
250 PAGE_KERNEL);
249 ret = __vmalloc(size, GFP_KERNEL | __GFP_ZERO, PAGE_KERNEL);
251 if (ret) {
252 struct vm_area_struct *vma;
253
254 down_write(&current->mm->mmap_sem);
255 vma = find_vma(current->mm, (unsigned long)ret);
256 if (vma)
257 vma->vm_flags |= VM_USERMAP;
258 up_write(&current->mm->mmap_sem);

--- 1734 unchanged lines hidden ---
250 if (ret) {
251 struct vm_area_struct *vma;
252
253 down_write(&current->mm->mmap_sem);
254 vma = find_vma(current->mm, (unsigned long)ret);
255 if (vma)
256 vma->vm_flags |= VM_USERMAP;
257 up_write(&current->mm->mmap_sem);

--- 1734 unchanged lines hidden ---