Changeset 31e8ddd in mainline for arch/ia32/src/proc/task.c


Ignore:
Timestamp:
2006-06-05T17:25:37Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2569ec90
Parents:
9c1c6771
Message:

task_destroy() implementation, fixes in as_destroy() and task_kill().
This is the first version of HelenOS that would perform complete cleanup leading from thread to destruction of address space.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/proc/task.c

    r9c1c6771 r31e8ddd  
    3030#include <arch/types.h>
    3131#include <adt/bitmap.h>
     32#include <mm/slab.h>
    3233
    3334/** Perform ia32 specific task initialization.
     
    4041        bitmap_initialize(&t->arch.iomap, NULL, 0);
    4142}
     43
     44/** Perform ia32 specific task destruction.
     45 *
     46 * @param t Task to be initialized.
     47 */
     48void task_destroy_arch(task_t *t)
     49{
     50        if (t->arch.iomap.map)
     51                free(t->arch.iomap.map);
     52}
Note: See TracChangeset for help on using the changeset viewer.