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