diff options
author | Richard Braun <rbraun@sceen.net> | 2011-12-17 21:25:23 +0000 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2011-12-17 22:13:00 +0000 |
commit | aef06eb95fdb3e5f5b857a8b641723759e850a85 (patch) | |
tree | c8c224ad6afc3a114eddea53a3d8ddff58767df2 | |
parent | 5988ae8fb41ace936e48e5a972abe1c5acc8f8af (diff) |
Remove the defunct kernel_task_create() function
The kmem_suballoc() function, which has been replaced with
kmem_submap(), is called by kernel_task_create(). Rather than update it,
remove this now unused function.
* kern/task.c (kernel_task_create): Remove function.
* kern/task.h (kernel_task_create): Remove prototype.
-rw-r--r-- | kern/task.c | 32 | ||||
-rw-r--r-- | kern/task.h | 2 |
2 files changed, 0 insertions, 34 deletions
diff --git a/kern/task.c b/kern/task.c index 2e9fd76..b1381ed 100644 --- a/kern/task.c +++ b/kern/task.c @@ -74,38 +74,6 @@ void task_init(void) (void) task_create(TASK_NULL, FALSE, &kernel_task); } -/* - * Create a task running in the kernel address space. It may - * have its own map of size mem_size (if 0, it uses the kernel map), - * and may have ipc privileges. - */ -task_t kernel_task_create( - task_t parent_task, - vm_size_t map_size) -{ - task_t new_task; - vm_offset_t min, max; - - /* - * Create the task. - */ - (void) task_create(parent_task, FALSE, &new_task); - - /* - * Task_create creates the task with a user-space map. - * Remove the map and replace it with the kernel map - * or a submap of the kernel map. - */ - vm_map_deallocate(new_task->map); - if (map_size == 0) - new_task->map = kernel_map; - else - new_task->map = kmem_suballoc(kernel_map, &min, &max, - map_size, FALSE); - - return new_task; -} - kern_return_t task_create( task_t parent_task, boolean_t inherit_memory, diff --git a/kern/task.h b/kern/task.h index 9d90243..c425158 100644 --- a/kern/task.h +++ b/kern/task.h @@ -162,8 +162,6 @@ extern kern_return_t task_hold(task_t); extern kern_return_t task_dowait(task_t, boolean_t); extern kern_return_t task_release(task_t); -extern task_t kernel_task_create(task_t, vm_size_t); - extern task_t kernel_task; #endif /* _KERN_TASK_H_ */ |