Commit d8b8d698 authored by Andrew Morton's avatar Andrew Morton Committed by Dave Jones

[PATCH] a few missing stubs for !CONFIG_MMU

Patch from Christoph Hellwig <hch@lst.de>

This is from the uClinux patches - there are a few more stubs needed
in nommu.c to get the mmuless plattforms working.
parent cb995148
...@@ -130,6 +130,11 @@ void *__vmalloc(unsigned long size, int gfp_mask, pgprot_t prot) ...@@ -130,6 +130,11 @@ void *__vmalloc(unsigned long size, int gfp_mask, pgprot_t prot)
return kmalloc(size, gfp_mask & ~__GFP_HIGHMEM); return kmalloc(size, gfp_mask & ~__GFP_HIGHMEM);
} }
struct page * vmalloc_to_page(void *addr)
{
return virt_to_page(addr);
}
long vread(char *buf, char *addr, unsigned long count) long vread(char *buf, char *addr, unsigned long count)
{ {
memcpy(buf, addr, count); memcpy(buf, addr, count);
...@@ -546,6 +551,17 @@ struct vm_area_struct * find_vma(struct mm_struct * mm, unsigned long addr) ...@@ -546,6 +551,17 @@ struct vm_area_struct * find_vma(struct mm_struct * mm, unsigned long addr)
return NULL; return NULL;
} }
struct page * follow_page(struct mm_struct *mm, unsigned long addr, int write)
{
return NULL;
}
int remap_page_range(struct vm_area_struct *vma, unsigned long from,
unsigned long to, unsigned long size, pgprot_t prot)
{
return -EPERM;
}
unsigned long get_unmapped_area(struct file *file, unsigned long addr, unsigned long get_unmapped_area(struct file *file, unsigned long addr,
unsigned long len, unsigned long pgoff, unsigned long flags) unsigned long len, unsigned long pgoff, unsigned long flags)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment