Changeset 31e8ddd in mainline for generic/src/mm/as.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:
9c1c677
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
  • generic/src/mm/as.c

    r9c1c677 r31e8ddd  
    148148        ipl = interrupts_disable();
    149149        spinlock_lock(&inactive_as_with_asid_lock);
    150         if (as->asid != ASID_INVALID && as->asid != ASID_KERNEL) {
    151                 list_remove(&as->inactive_as_with_asid_link);
     150
     151        if (as->asid != ASID_INVALID && as != AS_KERNEL) {
     152                if (!as->cpu_refcount)
     153                        list_remove(&as->inactive_as_with_asid_link);
    152154                asid_put(as->asid);
    153155        }
Note: See TracChangeset for help on using the changeset viewer.