Changeset 31e8ddd in mainline for arch/amd64/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/amd64/src/proc/task.c

    r9c1c6771 r31e8ddd  
    2828
    2929#include <proc/task.h>
     30#include <mm/slab.h>
    3031#include <arch/types.h>
    3132
     
    3940        bitmap_initialize(&t->arch.iomap, NULL, 0);
    4041}
     42
     43/** Perform amd64 specific task destruction.
     44 *
     45 * @param t Task to be initialized.
     46 */
     47void task_destroy_arch(task_t *t)
     48{
     49        if (t->arch.iomap.map)
     50                free(t->arch.iomap.map);
     51}
Note: See TracChangeset for help on using the changeset viewer.