Changeset 95c675b in mainline for kernel/generic/src/mm/backend_phys.c


Ignore:
Timestamp:
2017-10-17T13:11:35Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
60af4cdb
Parents:
dbf32b1 (diff), a416d070 (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.
Message:

Merge mainline

File:
1 edited

Legend:

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

    rdbf32b1 r95c675b  
    3737 */
    3838
    39 #include <debug.h>
     39#include <assert.h>
    4040#include <typedefs.h>
    4141#include <mm/as.h>
     
    4343#include <mm/frame.h>
    4444#include <mm/slab.h>
    45 #include <memstr.h>
    4645#include <macros.h>
    4746#include <arch.h>
     
    9695void phys_share(as_area_t *area)
    9796{
    98         ASSERT(mutex_locked(&area->as->lock));
    99         ASSERT(mutex_locked(&area->lock));
     97        assert(mutex_locked(&area->as->lock));
     98        assert(mutex_locked(&area->lock));
    10099}
    101100
     
    136135        uintptr_t base = area->backend_data.base;
    137136
    138         ASSERT(page_table_locked(AS));
    139         ASSERT(mutex_locked(&area->lock));
    140         ASSERT(IS_ALIGNED(upage, PAGE_SIZE));
     137        assert(page_table_locked(AS));
     138        assert(mutex_locked(&area->lock));
     139        assert(IS_ALIGNED(upage, PAGE_SIZE));
    141140
    142141        if (!as_area_check_access(area, access))
    143142                return AS_PF_FAULT;
    144143
    145         ASSERT(upage - area->base < area->backend_data.frames * FRAME_SIZE);
     144        assert(upage - area->base < area->backend_data.frames * FRAME_SIZE);
    146145        page_mapping_insert(AS, upage, base + (upage - area->base),
    147146            as_area_get_flags(area));
Note: See TracChangeset for help on using the changeset viewer.