Changeset 1ace9ea in mainline


Ignore:
Timestamp:
2006-04-12T17:05:36Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a6d4ceb
Parents:
9a8d91b
Message:

Add some sanity checks to make sure the address space created by SYS_MAM_PHYSMEM will not be remapped
and that as_page_fault() will not try to service page fault for that area.

File:
1 edited

Legend:

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

    r9a8d91b r1ace9ea  
    225225        }
    226226
     227        ASSERT(!(area->flags & AS_AREA_DEVICE));
     228
    227229        page_table_lock(AS, false);
    228230       
     
    443445        area = find_area_and_lock(as, address);
    444446        if (!area) {
     447                spinlock_unlock(&as->lock);
     448                interrupts_restore(ipl);
     449                return (__address) -1;
     450        }
     451
     452        if (area->flags & AS_AREA_DEVICE) {
     453                /*
     454                 * Remapping of address space areas associated
     455                 * with memory mapped devices is not supported.
     456                 */
     457                spinlock_unlock(&area->lock);
    445458                spinlock_unlock(&as->lock);
    446459                interrupts_restore(ipl);
Note: See TracChangeset for help on using the changeset viewer.