Changes in kernel/generic/src/mm/backend_elf.c [38dc82d:63e27ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/backend_elf.c
r38dc82d r63e27ef 37 37 38 38 #include <lib/elf.h> 39 #include < debug.h>39 #include <assert.h> 40 40 #include <typedefs.h> 41 41 #include <mm/as.h> … … 48 48 #include <genarch/mm/page_ht.h> 49 49 #include <align.h> 50 #include <mem str.h>50 #include <mem.h> 51 51 #include <macros.h> 52 52 #include <arch.h> … … 142 142 uintptr_t start_anon = entry->p_vaddr + entry->p_filesz; 143 143 144 ASSERT(mutex_locked(&area->as->lock));145 ASSERT(mutex_locked(&area->lock));144 assert(mutex_locked(&area->as->lock)); 145 assert(mutex_locked(&area->lock)); 146 146 147 147 /* … … 200 200 base + P2SZ(j), false, &pte); 201 201 202 ASSERT(found);203 ASSERT(PTE_VALID(&pte));204 ASSERT(PTE_PRESENT(&pte));202 assert(found); 203 assert(PTE_VALID(&pte)); 204 assert(PTE_PRESENT(&pte)); 205 205 206 206 btree_insert(&area->sh_info->pagemap, … … 261 261 bool dirty = false; 262 262 263 ASSERT(page_table_locked(AS));264 ASSERT(mutex_locked(&area->lock));265 ASSERT(IS_ALIGNED(upage, PAGE_SIZE));263 assert(page_table_locked(AS)); 264 assert(mutex_locked(&area->lock)); 265 assert(IS_ALIGNED(upage, PAGE_SIZE)); 266 266 267 267 if (!as_area_check_access(area, access)) … … 345 345 base + i * FRAME_SIZE, true, &pte); 346 346 347 ASSERT(found);348 ASSERT(PTE_PRESENT(&pte));347 assert(found); 348 assert(PTE_PRESENT(&pte)); 349 349 350 350 frame = PTE_GET_FRAME(&pte); … … 424 424 uintptr_t start_anon; 425 425 426 ASSERT(page_table_locked(area->as));427 ASSERT(mutex_locked(&area->lock));428 429 ASSERT(page >= ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE));430 ASSERT(page < entry->p_vaddr + entry->p_memsz);426 assert(page_table_locked(area->as)); 427 assert(mutex_locked(&area->lock)); 428 429 assert(page >= ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE)); 430 assert(page < entry->p_vaddr + entry->p_memsz); 431 431 432 432 start_anon = entry->p_vaddr + entry->p_filesz;
Note:
See TracChangeset
for help on using the changeset viewer.