/[rtmk]/rtmk/task.c
ViewVC logotype

Diff of /rtmk/task.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by jrydberg, Sun Feb 24 23:09:48 2002 UTC revision 1.11 by jrydberg, Wed Mar 6 00:55:01 2002 UTC
# Line 58  task_create (struct task *parent_task, b Line 58  task_create (struct task *parent_task, b
58    if (inherit_memory_p)    if (inherit_memory_p)
59      new_task->map = vm_map_fork (parent_task->map);      new_task->map = vm_map_fork (parent_task->map);
60    else    else
61      new_task->map = vm_map_create (PMAP_CREATE (),      {
62                                     vm_round_page (VM_USER_MIN_ADDRESS),        new_task->map =
63                                     vm_trunc_page (VM_USER_MAX_ADDRESS));          vm_map_create (PMAP_CREATE (), 0,
64                           vm_trunc_page (VM_USER_MAX_ADDRESS)
65                           - vm_round_page (VM_USER_MIN_ADDRESS));
66        }
67    
68    if (! new_task->map)    if (! new_task->map)
69      {      {
70        kmem_cache_free (task_cache, new_task);        kmem_cache_free (task_cache, new_task);
# Line 131  task_deallocate (struct task *task) Line 135  task_deallocate (struct task *task)
135      return;      return;
136    
137    host_info_basic.tasks--;    host_info_basic.tasks--;
138    trace_printf ("implement task_deallocate");    vm_map_release (task->map);
139  }  }
140    
141  /* Terminate TASK and release all resources held by it.    /* Terminate TASK and release all resources held by it.  

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26