Changes in kernel/generic/src/mm/as.c [c477c80:8df5f20] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/as.c
rc477c80 r8df5f20 127 127 static void used_space_shorten_ival(used_space_ival_t *, size_t); 128 128 129 NO_TRACE static errno_t as_constructor(void *obj, unsigned int flags)129 _NO_TRACE static errno_t as_constructor(void *obj, unsigned int flags) 130 130 { 131 131 as_t *as = (as_t *) obj; … … 137 137 } 138 138 139 NO_TRACE static size_t as_destructor(void *obj)139 _NO_TRACE static size_t as_destructor(void *obj) 140 140 { 141 141 return as_destructor_arch((as_t *) obj); … … 281 281 * 282 282 */ 283 NO_TRACE void as_hold(as_t *as)283 _NO_TRACE void as_hold(as_t *as) 284 284 { 285 285 refcount_up(&as->refcount); … … 294 294 * 295 295 */ 296 NO_TRACE void as_release(as_t *as)296 _NO_TRACE void as_release(as_t *as) 297 297 { 298 298 if (refcount_down(&as->refcount)) … … 340 340 * @return True if the two areas conflict, false otherwise. 341 341 */ 342 NO_TRACE static bool area_is_conflicting(uintptr_t addr,342 _NO_TRACE static bool area_is_conflicting(uintptr_t addr, 343 343 size_t count, bool guarded, as_area_t *area) 344 344 { … … 380 380 * 381 381 */ 382 NO_TRACE static bool check_area_conflicts(as_t *as, uintptr_t addr,382 _NO_TRACE static bool check_area_conflicts(as_t *as, uintptr_t addr, 383 383 size_t count, bool guarded, as_area_t *avoid) 384 384 { … … 474 474 * 475 475 */ 476 NO_TRACE static uintptr_t as_get_unmapped_area(as_t *as, uintptr_t bound,476 _NO_TRACE static uintptr_t as_get_unmapped_area(as_t *as, uintptr_t bound, 477 477 size_t size, bool guarded) 478 478 { … … 580 580 * @param pagemap Pagemap 581 581 */ 582 NO_TRACE void as_pagemap_initialize(as_pagemap_t *pagemap)582 _NO_TRACE void as_pagemap_initialize(as_pagemap_t *pagemap) 583 583 { 584 584 odict_initialize(&pagemap->map, as_pagemap_getkey, as_pagemap_cmp); … … 591 591 * @param pagemap Pagemap 592 592 */ 593 NO_TRACE void as_pagemap_finalize(as_pagemap_t *pagemap)593 _NO_TRACE void as_pagemap_finalize(as_pagemap_t *pagemap) 594 594 { 595 595 as_page_mapping_t *mapping = as_pagemap_first(pagemap); … … 606 606 * @return First mapping or @c NULL if there is none 607 607 */ 608 NO_TRACE as_page_mapping_t *as_pagemap_first(as_pagemap_t *pagemap)608 _NO_TRACE as_page_mapping_t *as_pagemap_first(as_pagemap_t *pagemap) 609 609 { 610 610 odlink_t *odlink; … … 622 622 * @return Next mapping or @c NULL if @a cur is the last one 623 623 */ 624 NO_TRACE as_page_mapping_t *as_pagemap_next(as_page_mapping_t *cur)624 _NO_TRACE as_page_mapping_t *as_pagemap_next(as_page_mapping_t *cur) 625 625 { 626 626 odlink_t *odlink; … … 640 640 * @return EOK on succcess or ENOENT if no mapping found 641 641 */ 642 NO_TRACE errno_t as_pagemap_find(as_pagemap_t *pagemap, uintptr_t vaddr,642 _NO_TRACE errno_t as_pagemap_find(as_pagemap_t *pagemap, uintptr_t vaddr, 643 643 uintptr_t *rframe) 644 644 { … … 663 663 * @param frame Physical frame address 664 664 */ 665 NO_TRACE void as_pagemap_insert(as_pagemap_t *pagemap, uintptr_t vaddr,665 _NO_TRACE void as_pagemap_insert(as_pagemap_t *pagemap, uintptr_t vaddr, 666 666 uintptr_t frame) 667 667 { … … 680 680 * @param mapping Mapping 681 681 */ 682 NO_TRACE void as_pagemap_remove(as_page_mapping_t *mapping)682 _NO_TRACE void as_pagemap_remove(as_page_mapping_t *mapping) 683 683 { 684 684 odict_remove(&mapping->lpagemap); … … 693 693 * 694 694 */ 695 NO_TRACE static void sh_info_remove_reference(share_info_t *sh_info)695 _NO_TRACE static void sh_info_remove_reference(share_info_t *sh_info) 696 696 { 697 697 bool dealloc = false; … … 861 861 * 862 862 */ 863 NO_TRACE static as_area_t *find_area_and_lock(as_t *as, uintptr_t va)863 _NO_TRACE static as_area_t *find_area_and_lock(as_t *as, uintptr_t va) 864 864 { 865 865 assert(mutex_locked(&as->lock)); … … 1305 1305 * 1306 1306 */ 1307 NO_TRACE bool as_area_check_access(as_area_t *area, pf_access_t access)1307 _NO_TRACE bool as_area_check_access(as_area_t *area, pf_access_t access) 1308 1308 { 1309 1309 assert(mutex_locked(&area->lock)); … … 1328 1328 * 1329 1329 */ 1330 NO_TRACE static unsigned int area_flags_to_page_flags(unsigned int aflags)1330 _NO_TRACE static unsigned int area_flags_to_page_flags(unsigned int aflags) 1331 1331 { 1332 1332 unsigned int flags = PAGE_USER | PAGE_PRESENT; … … 1698 1698 * 1699 1699 */ 1700 NO_TRACE unsigned int as_area_get_flags(as_area_t *area)1700 _NO_TRACE unsigned int as_area_get_flags(as_area_t *area) 1701 1701 { 1702 1702 assert(mutex_locked(&area->lock)); … … 1746 1746 * 1747 1747 */ 1748 NO_TRACE pte_t *page_table_create(unsigned int flags)1748 _NO_TRACE pte_t *page_table_create(unsigned int flags) 1749 1749 { 1750 1750 assert(as_operations); … … 1761 1761 * 1762 1762 */ 1763 NO_TRACE void page_table_destroy(pte_t *page_table)1763 _NO_TRACE void page_table_destroy(pte_t *page_table) 1764 1764 { 1765 1765 assert(as_operations); … … 1782 1782 * 1783 1783 */ 1784 NO_TRACE void page_table_lock(as_t *as, bool lock)1784 _NO_TRACE void page_table_lock(as_t *as, bool lock) 1785 1785 { 1786 1786 assert(as_operations); … … 1796 1796 * 1797 1797 */ 1798 NO_TRACE void page_table_unlock(as_t *as, bool unlock)1798 _NO_TRACE void page_table_unlock(as_t *as, bool unlock) 1799 1799 { 1800 1800 assert(as_operations); … … 1811 1811 * are locked, otherwise false. 1812 1812 */ 1813 NO_TRACE bool page_table_locked(as_t *as)1813 _NO_TRACE bool page_table_locked(as_t *as) 1814 1814 { 1815 1815 assert(as_operations);
Note:
See TracChangeset
for help on using the changeset viewer.