Subversion Repositories HelenOS-historic

Rev

Rev 5 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5 Rev 6
Line 168... Line 168...
168
    link_t *l;
168
    link_t *l;
169
    pri_t pri;
169
    pri_t pri;
170
   
170
   
171
    pri = cpu_priority_high();
171
    pri = cpu_priority_high();
172
 
172
 
173
    tlb_shutdown_start();
173
    tlb_shootdown_start();
174
 
174
 
175
    spinlock_lock(&m->lock);
175
    spinlock_lock(&m->lock);
176
 
176
 
177
    for(l = m->vm_area_head.next; l != &m->vm_area_head; l = l->next)
177
    for(l = m->vm_area_head.next; l != &m->vm_area_head; l = l->next)
178
        vm_area_unmap(list_get_instance(l, vm_area_t, link));
178
        vm_area_unmap(list_get_instance(l, vm_area_t, link));
179
 
179
 
180
    spinlock_unlock(&m->lock);
180
    spinlock_unlock(&m->lock);
181
 
181
 
182
    tlb_invalidate(0);
182
    tlb_invalidate(0);
183
    tlb_shutdown_finalize();
183
    tlb_shootdown_finalize();
184
 
184
 
185
    cpu_priority_restore(pri);
185
    cpu_priority_restore(pri);
186
}
186
}