Changes in kernel/generic/src/mm/backend_phys.c [63e27ef:83b6ba9f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/backend_phys.c
r63e27ef r83b6ba9f 37 37 */ 38 38 39 #include < assert.h>39 #include <debug.h> 40 40 #include <typedefs.h> 41 41 #include <mm/as.h> … … 43 43 #include <mm/frame.h> 44 44 #include <mm/slab.h> 45 #include <memstr.h> 45 46 #include <macros.h> 46 47 #include <arch.h> … … 95 96 void phys_share(as_area_t *area) 96 97 { 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)); 99 100 } 100 101 … … 135 136 uintptr_t base = area->backend_data.base; 136 137 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)); 140 141 141 142 if (!as_area_check_access(area, access)) 142 143 return AS_PF_FAULT; 143 144 144 assert(upage - area->base < area->backend_data.frames * FRAME_SIZE);145 ASSERT(upage - area->base < area->backend_data.frames * FRAME_SIZE); 145 146 page_mapping_insert(AS, upage, base + (upage - area->base), 146 147 as_area_get_flags(area));
Note:
See TracChangeset
for help on using the changeset viewer.