Changeset b294126 in mainline


Ignore:
Timestamp:
2018-11-07T18:45:12Z (6 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9c75a99d, b03c684
Parents:
6454db5e (diff), ac9e79d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jakub Jermář <jakub@…> (2018-11-07 18:45:12)
git-committer:
GitHub <noreply@…> (2018-11-07 18:45:12)
Message:

Merge pull request #52 from jermar/asrefcnt

Fix as_t reference counting

Location:
kernel/generic/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/as.c

    r6454db5e rb294126  
    141141        if (!AS_KERNEL)
    142142                panic("Cannot create kernel address space.");
    143 
    144         /*
    145          * Make sure the kernel address space
    146          * reference count never drops to zero.
    147          */
    148         as_hold(AS_KERNEL);
    149143}
    150144
  • kernel/generic/src/proc/task.c

    r6454db5e rb294126  
    254254        futex_task_init(task);
    255255
    256         /*
    257          * Get a reference to the address space.
    258          */
    259         as_hold(task->as);
    260 
    261256        irq_spinlock_lock(&tasks_lock, true);
    262257
Note: See TracChangeset for help on using the changeset viewer.