summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2004-07-25 20:08:59 +0000
committeralc <alc@FreeBSD.org>2004-07-25 20:08:59 +0000
commit459c13818ea99e29fe3e0179cf68b19fb80e545c (patch)
tree8ce0debcd19c4e7ac75e214be62af3da766e095c /sys/vm
parentc1b56ad3dfe11c565bae2c34097d37d2d7b9ff0c (diff)
downloadFreeBSD-src-459c13818ea99e29fe3e0179cf68b19fb80e545c.zip
FreeBSD-src-459c13818ea99e29fe3e0179cf68b19fb80e545c.tar.gz
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.
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 08169ef..7bb61b1 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 f71785f..5231d2c 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
OpenPOWER on IntegriCloud