Changes in kernel/generic/src/mm/as.c [e3ee9b9:97bdb4a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/as.c
re3ee9b9 r97bdb4a 116 116 as_t *AS_KERNEL = NULL; 117 117 118 static int as_constructor(void *obj, unsigned int flags)118 NO_TRACE static int as_constructor(void *obj, unsigned int flags) 119 119 { 120 120 as_t *as = (as_t *) obj; … … 128 128 } 129 129 130 static size_t as_destructor(void *obj)130 NO_TRACE static size_t as_destructor(void *obj) 131 131 { 132 132 as_t *as = (as_t *) obj; … … 274 274 * 275 275 */ 276 void as_hold(as_t *as)276 NO_TRACE void as_hold(as_t *as) 277 277 { 278 278 atomic_inc(&as->refcount); … … 287 287 * 288 288 */ 289 void as_release(as_t *as)289 NO_TRACE void as_release(as_t *as) 290 290 { 291 291 if (atomic_predec(&as->refcount) == 0) … … 303 303 * 304 304 */ 305 static bool check_area_conflicts(as_t *as, uintptr_t va, size_t size,305 NO_TRACE static bool check_area_conflicts(as_t *as, uintptr_t va, size_t size, 306 306 as_area_t *avoid_area) 307 307 { … … 463 463 * 464 464 */ 465 static as_area_t *find_area_and_lock(as_t *as, uintptr_t va)465 NO_TRACE static as_area_t *find_area_and_lock(as_t *as, uintptr_t va) 466 466 { 467 467 ASSERT(mutex_locked(&as->lock)); … … 717 717 * 718 718 */ 719 static void sh_info_remove_reference(share_info_t *sh_info)719 NO_TRACE static void sh_info_remove_reference(share_info_t *sh_info) 720 720 { 721 721 bool dealloc = false; … … 987 987 * 988 988 */ 989 bool as_area_check_access(as_area_t *area, pf_access_t access)989 NO_TRACE bool as_area_check_access(as_area_t *area, pf_access_t access) 990 990 { 991 991 int flagmap[] = { … … 1010 1010 * 1011 1011 */ 1012 static unsigned int area_flags_to_page_flags(unsigned int aflags)1012 NO_TRACE static unsigned int area_flags_to_page_flags(unsigned int aflags) 1013 1013 { 1014 1014 unsigned int flags = PAGE_USER | PAGE_PRESENT; … … 1385 1385 } 1386 1386 1387 1388 1389 1387 /** Compute flags for virtual address translation subsytem. 1390 1388 * … … 1394 1392 * 1395 1393 */ 1396 unsigned int as_area_get_flags(as_area_t *area)1394 NO_TRACE unsigned int as_area_get_flags(as_area_t *area) 1397 1395 { 1398 1396 ASSERT(mutex_locked(&area->lock)); … … 1412 1410 * 1413 1411 */ 1414 pte_t *page_table_create(unsigned int flags)1412 NO_TRACE pte_t *page_table_create(unsigned int flags) 1415 1413 { 1416 1414 ASSERT(as_operations); … … 1427 1425 * 1428 1426 */ 1429 void page_table_destroy(pte_t *page_table)1427 NO_TRACE void page_table_destroy(pte_t *page_table) 1430 1428 { 1431 1429 ASSERT(as_operations); … … 1448 1446 * 1449 1447 */ 1450 void page_table_lock(as_t *as, bool lock)1448 NO_TRACE void page_table_lock(as_t *as, bool lock) 1451 1449 { 1452 1450 ASSERT(as_operations); … … 1462 1460 * 1463 1461 */ 1464 void page_table_unlock(as_t *as, bool unlock)1462 NO_TRACE void page_table_unlock(as_t *as, bool unlock) 1465 1463 { 1466 1464 ASSERT(as_operations); … … 1477 1475 * are locked, otherwise false. 1478 1476 */ 1479 bool page_table_locked(as_t *as)1477 NO_TRACE bool page_table_locked(as_t *as) 1480 1478 { 1481 1479 ASSERT(as_operations);
Note:
See TracChangeset
for help on using the changeset viewer.