Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/as.c

    rc477c80 r8df5f20  
    127127static void used_space_shorten_ival(used_space_ival_t *, size_t);
    128128
    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)
    130130{
    131131        as_t *as = (as_t *) obj;
     
    137137}
    138138
    139 NO_TRACE static size_t as_destructor(void *obj)
     139_NO_TRACE static size_t as_destructor(void *obj)
    140140{
    141141        return as_destructor_arch((as_t *) obj);
     
    281281 *
    282282 */
    283 NO_TRACE void as_hold(as_t *as)
     283_NO_TRACE void as_hold(as_t *as)
    284284{
    285285        refcount_up(&as->refcount);
     
    294294 *
    295295 */
    296 NO_TRACE void as_release(as_t *as)
     296_NO_TRACE void as_release(as_t *as)
    297297{
    298298        if (refcount_down(&as->refcount))
     
    340340 * @return True if the two areas conflict, false otherwise.
    341341 */
    342 NO_TRACE static bool area_is_conflicting(uintptr_t addr,
     342_NO_TRACE static bool area_is_conflicting(uintptr_t addr,
    343343    size_t count, bool guarded, as_area_t *area)
    344344{
     
    380380 *
    381381 */
    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,
    383383    size_t count, bool guarded, as_area_t *avoid)
    384384{
     
    474474 *
    475475 */
    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,
    477477    size_t size, bool guarded)
    478478{
     
    580580 * @param pagemap Pagemap
    581581 */
    582 NO_TRACE void as_pagemap_initialize(as_pagemap_t *pagemap)
     582_NO_TRACE void as_pagemap_initialize(as_pagemap_t *pagemap)
    583583{
    584584        odict_initialize(&pagemap->map, as_pagemap_getkey, as_pagemap_cmp);
     
    591591 * @param pagemap Pagemap
    592592 */
    593 NO_TRACE void as_pagemap_finalize(as_pagemap_t *pagemap)
     593_NO_TRACE void as_pagemap_finalize(as_pagemap_t *pagemap)
    594594{
    595595        as_page_mapping_t *mapping = as_pagemap_first(pagemap);
     
    606606 * @return First mapping or @c NULL if there is none
    607607 */
    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)
    609609{
    610610        odlink_t *odlink;
     
    622622 * @return Next mapping or @c NULL if @a cur is the last one
    623623 */
    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)
    625625{
    626626        odlink_t *odlink;
     
    640640 * @return EOK on succcess or ENOENT if no mapping found
    641641 */
    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,
    643643    uintptr_t *rframe)
    644644{
     
    663663 * @param frame Physical frame address
    664664 */
    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,
    666666    uintptr_t frame)
    667667{
     
    680680 * @param mapping Mapping
    681681 */
    682 NO_TRACE void as_pagemap_remove(as_page_mapping_t *mapping)
     682_NO_TRACE void as_pagemap_remove(as_page_mapping_t *mapping)
    683683{
    684684        odict_remove(&mapping->lpagemap);
     
    693693 *
    694694 */
    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)
    696696{
    697697        bool dealloc = false;
     
    861861 *
    862862 */
    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)
    864864{
    865865        assert(mutex_locked(&as->lock));
     
    13051305 *
    13061306 */
    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)
    13081308{
    13091309        assert(mutex_locked(&area->lock));
     
    13281328 *
    13291329 */
    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)
    13311331{
    13321332        unsigned int flags = PAGE_USER | PAGE_PRESENT;
     
    16981698 *
    16991699 */
    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)
    17011701{
    17021702        assert(mutex_locked(&area->lock));
     
    17461746 *
    17471747 */
    1748 NO_TRACE pte_t *page_table_create(unsigned int flags)
     1748_NO_TRACE pte_t *page_table_create(unsigned int flags)
    17491749{
    17501750        assert(as_operations);
     
    17611761 *
    17621762 */
    1763 NO_TRACE void page_table_destroy(pte_t *page_table)
     1763_NO_TRACE void page_table_destroy(pte_t *page_table)
    17641764{
    17651765        assert(as_operations);
     
    17821782 *
    17831783 */
    1784 NO_TRACE void page_table_lock(as_t *as, bool lock)
     1784_NO_TRACE void page_table_lock(as_t *as, bool lock)
    17851785{
    17861786        assert(as_operations);
     
    17961796 *
    17971797 */
    1798 NO_TRACE void page_table_unlock(as_t *as, bool unlock)
     1798_NO_TRACE void page_table_unlock(as_t *as, bool unlock)
    17991799{
    18001800        assert(as_operations);
     
    18111811 *         are locked, otherwise false.
    18121812 */
    1813 NO_TRACE bool page_table_locked(as_t *as)
     1813_NO_TRACE bool page_table_locked(as_t *as)
    18141814{
    18151815        assert(as_operations);
Note: See TracChangeset for help on using the changeset viewer.