Rev 1227 | Rev 1248 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1227 | Rev 1239 | ||
|---|---|---|---|
| Line 90... | Line 90... | ||
| 90 | spinlock_unlock(&tasks_lock); |
90 | spinlock_unlock(&tasks_lock); |
| 91 | 91 | ||
| 92 | flags = AS_AREA_DEVICE | AS_AREA_READ; |
92 | flags = AS_AREA_DEVICE | AS_AREA_READ; |
| 93 | if (writable) |
93 | if (writable) |
| 94 | flags |= AS_AREA_WRITE; |
94 | flags |= AS_AREA_WRITE; |
| 95 | if (!as_area_create(t->as, flags, pages * PAGE_SIZE, vp)) { |
95 | if (!as_area_create(t->as, flags, pages * PAGE_SIZE, vp, AS_AREA_ATTR_NONE)) { |
| 96 | /* |
96 | /* |
| 97 | * The address space area could not have been created. |
97 | * The address space area could not have been created. |
| 98 | * We report it using ENOMEM. |
98 | * We report it using ENOMEM. |
| 99 | */ |
99 | */ |
| 100 | spinlock_unlock(&t->lock); |
100 | spinlock_unlock(&t->lock); |