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