Changes in kernel/generic/src/mm/backend_anon.c [38dc82d:63e27ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/backend_anon.c
r38dc82d r63e27ef 37 37 */ 38 38 39 #include <assert.h> 39 40 #include <mm/as.h> 40 41 #include <mm/page.h> … … 51 52 #include <typedefs.h> 52 53 #include <align.h> 53 #include <mem str.h>54 #include <mem.h> 54 55 #include <arch.h> 55 56 … … 113 114 void anon_share(as_area_t *area) 114 115 { 115 ASSERT(mutex_locked(&area->as->lock));116 ASSERT(mutex_locked(&area->lock));117 ASSERT(!(area->flags & AS_AREA_LATE_RESERVE));116 assert(mutex_locked(&area->as->lock)); 117 assert(mutex_locked(&area->lock)); 118 assert(!(area->flags & AS_AREA_LATE_RESERVE)); 118 119 119 120 /* … … 138 139 base + P2SZ(j), false, &pte); 139 140 140 ASSERT(found);141 ASSERT(PTE_VALID(&pte));142 ASSERT(PTE_PRESENT(&pte));141 assert(found); 142 assert(PTE_VALID(&pte)); 143 assert(PTE_PRESENT(&pte)); 143 144 144 145 btree_insert(&area->sh_info->pagemap, … … 190 191 uintptr_t frame; 191 192 192 ASSERT(page_table_locked(AS));193 ASSERT(mutex_locked(&area->lock));194 ASSERT(IS_ALIGNED(upage, PAGE_SIZE));193 assert(page_table_locked(AS)); 194 assert(mutex_locked(&area->lock)); 195 assert(IS_ALIGNED(upage, PAGE_SIZE)); 195 196 196 197 if (!as_area_check_access(area, access)) … … 294 295 void anon_frame_free(as_area_t *area, uintptr_t page, uintptr_t frame) 295 296 { 296 ASSERT(page_table_locked(area->as));297 ASSERT(mutex_locked(&area->lock));297 assert(page_table_locked(area->as)); 298 assert(mutex_locked(&area->lock)); 298 299 299 300 if (area->flags & AS_AREA_LATE_RESERVE) {
Note:
See TracChangeset
for help on using the changeset viewer.