Subversion Repositories HelenOS-historic

Rev

Rev 1297 | Rev 1424 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1297 Rev 1409
Line 99... Line 99...
99
    spinlock_unlock(&tasks_lock);
99
    spinlock_unlock(&tasks_lock);
100
   
100
   
101
    flags = AS_AREA_DEVICE | AS_AREA_READ;
101
    flags = AS_AREA_DEVICE | AS_AREA_READ;
102
    if (writable)
102
    if (writable)
103
        flags |= AS_AREA_WRITE;
103
        flags |= AS_AREA_WRITE;
104
    if (!as_area_create(t->as, flags, pages * PAGE_SIZE, vp, AS_AREA_ATTR_NONE)) {
104
    if (!as_area_create(t->as, flags, pages * PAGE_SIZE, vp, AS_AREA_ATTR_NONE, NULL, NULL)) {
105
        /*
105
        /*
106
         * The address space area could not have been created.
106
         * The address space area could not have been created.
107
         * We report it using ENOMEM.
107
         * We report it using ENOMEM.
108
         */
108
         */
109
        spinlock_unlock(&t->lock);
109
        spinlock_unlock(&t->lock);