patch-2.4.7 linux/arch/mips64/mm/umap.c

Next file: linux/arch/parisc/kernel/ptrace.c
Previous file: linux/arch/mips64/mm/r4xx0.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.6/linux/arch/mips64/mm/umap.c linux/arch/mips64/mm/umap.c
@@ -1,11 +1,11 @@
-/* $Id: umap.c,v 1.4 2000/01/29 01:41:59 ralf Exp $
- *
+/*
  * This file is subject to the terms and conditions of the GNU General Public
  * License.  See the file "COPYING" in the main directory of this archive
  * for more details.
  *
  * Copyright (C) 1994 Linus Torvalds
  * Copyright (C) 1997 Miguel de Icaza
+ * Copyright (C) 2001 Ralf Baechle
  */
 #include <linux/stat.h>
 #include <linux/sched.h>
@@ -16,6 +16,7 @@
 #include <linux/shm.h>
 #include <linux/errno.h>
 #include <linux/mman.h>
+#include <linux/module.h>
 #include <linux/string.h>
 #include <linux/vmalloc.h>
 #include <linux/swap.h>
@@ -101,9 +102,12 @@
 	up_write (&task->mm->mmap_sem);
 }
 
+EXPORT_SYMBOL(remove_mapping);
+
 void *vmalloc_uncached (unsigned long size)
 {
-	return vmalloc_prot (size, PAGE_KERNEL_UNCACHED);
+	return __vmalloc (size, GFP_KERNEL | __GFP_HIGHMEM,
+				PAGE_KERNEL_UNCACHED);
 }
 
 static inline void free_pte(pte_t page)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)