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