Ignore:
File:
1 edited

Legend:

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

    r63e27ef r83b6ba9f  
    3737 */
    3838
    39 #include <assert.h>
     39#include <debug.h>
    4040#include <typedefs.h>
    4141#include <mm/as.h>
     
    4343#include <mm/frame.h>
    4444#include <mm/slab.h>
     45#include <memstr.h>
    4546#include <macros.h>
    4647#include <arch.h>
     
    9596void phys_share(as_area_t *area)
    9697{
    97         assert(mutex_locked(&area->as->lock));
    98         assert(mutex_locked(&area->lock));
     98        ASSERT(mutex_locked(&area->as->lock));
     99        ASSERT(mutex_locked(&area->lock));
    99100}
    100101
     
    135136        uintptr_t base = area->backend_data.base;
    136137
    137         assert(page_table_locked(AS));
    138         assert(mutex_locked(&area->lock));
    139         assert(IS_ALIGNED(upage, PAGE_SIZE));
     138        ASSERT(page_table_locked(AS));
     139        ASSERT(mutex_locked(&area->lock));
     140        ASSERT(IS_ALIGNED(upage, PAGE_SIZE));
    140141
    141142        if (!as_area_check_access(area, access))
    142143                return AS_PF_FAULT;
    143144
    144         assert(upage - area->base < area->backend_data.frames * FRAME_SIZE);
     145        ASSERT(upage - area->base < area->backend_data.frames * FRAME_SIZE);
    145146        page_mapping_insert(AS, upage, base + (upage - area->base),
    146147            as_area_get_flags(area));
Note: See TracChangeset for help on using the changeset viewer.