Rev 1588 | Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1588 | Rev 1589 | ||
---|---|---|---|
Line 73... | Line 73... | ||
73 | caps = cap_get(TASK); |
73 | caps = cap_get(TASK); |
74 | if (!(caps & CAP_MEM_MANAGER)) |
74 | if (!(caps & CAP_MEM_MANAGER)) |
75 | return EPERM; |
75 | return EPERM; |
76 | 76 | ||
77 | ipl = interrupts_disable(); |
77 | ipl = interrupts_disable(); |
78 | /* Lock the task and release the lock protecting tasks_btree. */ |
- | |
79 | spinlock_lock(&TASK->lock); |
78 | spinlock_lock(&TASK->lock); |
80 | 79 | ||
81 | if (!as_area_create(TASK->as, flags, pages * PAGE_SIZE, vp, AS_AREA_ATTR_NONE, |
80 | if (!as_area_create(TASK->as, flags, pages * PAGE_SIZE, vp, AS_AREA_ATTR_NONE, |
82 | &phys_backend, &backend_data)) { |
81 | &phys_backend, &backend_data)) { |
83 | /* |
82 | /* |