Ignore:
File:
1 edited

Legend:

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

    r83b6ba9f r63e27ef  
    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.