Changeset 63e27ef in mainline for kernel/generic/src/mm/backend_user.c
- Timestamp:
- 2017-06-19T21:47:42Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- deacc58d
- Parents:
- 7354b5e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/backend_user.c
r7354b5e r63e27ef 46 46 #include <typedefs.h> 47 47 #include <align.h> 48 #include < debug.h>48 #include <assert.h> 49 49 #include <errno.h> 50 50 #include <log.h> … … 108 108 int user_page_fault(as_area_t *area, uintptr_t upage, pf_access_t access) 109 109 { 110 ASSERT(page_table_locked(AS));111 ASSERT(mutex_locked(&area->lock));112 ASSERT(IS_ALIGNED(upage, PAGE_SIZE));110 assert(page_table_locked(AS)); 111 assert(mutex_locked(&area->lock)); 112 assert(IS_ALIGNED(upage, PAGE_SIZE)); 113 113 114 114 if (!as_area_check_access(area, access)) … … 162 162 void user_frame_free(as_area_t *area, uintptr_t page, uintptr_t frame) 163 163 { 164 ASSERT(page_table_locked(area->as));165 ASSERT(mutex_locked(&area->lock));164 assert(page_table_locked(area->as)); 165 assert(mutex_locked(&area->lock)); 166 166 167 167 pfn_t pfn = ADDR2PFN(frame);
Note:
See TracChangeset
for help on using the changeset viewer.