Changeset 31e8ddd in mainline for arch


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.

Location:
arch
Files:
7 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}
  • 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}
  • arch/ia64/include/proc/task.h

    r9c1c6771 r31e8ddd  
    3434
    3535#define task_create_arch(t)
     36#define task_destroy_arch(t)
    3637
    3738#endif
  • arch/mips32/include/proc/task.h

    r9c1c6771 r31e8ddd  
    3434
    3535#define task_create_arch(t)
     36#define task_destroy_arch(t)
    3637
    3738#endif
  • arch/ppc32/include/proc/task.h

    r9c1c6771 r31e8ddd  
    3434
    3535#define task_create_arch(t)
     36#define task_destroy_arch(t)
    3637
    3738#endif
  • arch/ppc64/include/proc/task.h

    r9c1c6771 r31e8ddd  
    3434
    3535#define task_create_arch(t)
     36#define task_destroy_arch(t)
    3637
    3738#endif
  • arch/sparc64/include/proc/task.h

    r9c1c6771 r31e8ddd  
    3434
    3535#define task_create_arch(t)
     36#define task_destroy_arch(t)
    3637
    3738#endif
Note: See TracChangeset for help on using the changeset viewer.