aboutsummaryrefslogtreecommitdiff
path: root/sys/vm
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2004-07-25 20:08:59 +0000
committerAlan Cox <alc@FreeBSD.org>2004-07-25 20:08:59 +0000
commit5122b7480941b8c832918e12006c88cf8be6959a (patch)
tree8ce0debcd19c4e7ac75e214be62af3da766e095c /sys/vm
parent4411688509c43a24ab7aa7561072e54b999b9b21 (diff)
downloadsrc-5122b7480941b8c832918e12006c88cf8be6959a.tar.gz
src-5122b7480941b8c832918e12006c88cf8be6959a.zip
For years, kmem_alloc_pageable() has been misused. Now that the last of
these misuses has been corrected, remove it before new ones appear, such as arm/arm/pmap.c revision 1.8.
Notes
Notes: svn path=/head/; revision=132638
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_extern.h1
-rw-r--r--sys/vm/vm_kern.c24
2 files changed, 0 insertions, 25 deletions
diff --git a/sys/vm/vm_extern.h b/sys/vm/vm_extern.h
index 08169eff6ec3..7bb61b1b9854 100644
--- a/sys/vm/vm_extern.h
+++ b/sys/vm/vm_extern.h
@@ -58,7 +58,6 @@ int swapon(struct thread *, void *, int *);
int kernacc(void *, int, int);
vm_offset_t kmem_alloc(vm_map_t, vm_size_t);
vm_offset_t kmem_alloc_nofault(vm_map_t, vm_size_t);
-vm_offset_t kmem_alloc_pageable(vm_map_t, vm_size_t);
vm_offset_t kmem_alloc_wait(vm_map_t, vm_size_t);
void kmem_free(vm_map_t, vm_offset_t, vm_size_t);
void kmem_free_wakeup(vm_map_t, vm_offset_t, vm_size_t);
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c
index f71785f57123..5231d2ca1089 100644
--- a/sys/vm/vm_kern.c
+++ b/sys/vm/vm_kern.c
@@ -89,30 +89,6 @@ vm_map_t pipe_map;
vm_map_t buffer_map=0;
/*
- * kmem_alloc_pageable:
- *
- * Allocate pageable memory to the kernel's address map.
- * "map" must be kernel_map or a submap of kernel_map.
- */
-vm_offset_t
-kmem_alloc_pageable(map, size)
- vm_map_t map;
- vm_size_t size;
-{
- vm_offset_t addr;
- int result;
-
- size = round_page(size);
- addr = vm_map_min(map);
- result = vm_map_find(map, NULL, 0,
- &addr, size, TRUE, VM_PROT_ALL, VM_PROT_ALL, 0);
- if (result != KERN_SUCCESS) {
- return (0);
- }
- return (addr);
-}
-
-/*
* kmem_alloc_nofault:
*
* Allocate a virtual address range with no underlying object and