Changeset a33f0a6 in mainline for kernel/generic/src/mm/backend_anon.c


Ignore:
Timestamp:
2011-08-03T17:34:57Z (15 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
Children:
1940326
Parents:
52a79081 (diff), 3fab770 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from mainline

File:
1 edited

Legend:

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

    r52a79081 ra33f0a6  
    5050#include <typedefs.h>
    5151#include <align.h>
     52#include <memstr.h>
    5253#include <arch.h>
    5354
     
    9697void anon_share(as_area_t *area)
    9798{
    98         link_t *cur;
    99 
    10099        ASSERT(mutex_locked(&area->as->lock));
    101100        ASSERT(mutex_locked(&area->lock));
     
    105104         */
    106105        mutex_lock(&area->sh_info->lock);
    107         for (cur = area->used_space.leaf_head.next;
    108             cur != &area->used_space.leaf_head; cur = cur->next) {
     106        list_foreach(area->used_space.leaf_list, cur) {
    109107                btree_node_t *node;
    110108                unsigned int i;
     
    121119                                page_table_lock(area->as, false);
    122120                                pte = page_mapping_find(area->as,
    123                                     base + j * PAGE_SIZE);
     121                                    base + P2SZ(j), false);
    124122                                ASSERT(pte && PTE_VALID(pte) &&
    125123                                    PTE_PRESENT(pte));
    126124                                btree_insert(&area->sh_info->pagemap,
    127                                     (base + j * PAGE_SIZE) - area->base,
     125                                    (base + P2SZ(j)) - area->base,
    128126                                    (void *) PTE_GET_FRAME(pte), NULL);
    129127                                page_table_unlock(area->as, false);
Note: See TracChangeset for help on using the changeset viewer.