Changeset f5935ed in mainline for generic/src/mm/page.c


Ignore:
Timestamp:
2006-02-06T15:09:58Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
021d471
Parents:
c7ec94a4
Message:

Use hash_table_get_instance instead of list_get_instance.
Rename page_operations to page_mapping_operations.
Rename page_pt_operations to pt_mapping_operations.
Rename page_ht_operations to ht_mapping_operations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/mm/page.c

    rc7ec94a4 rf5935ed  
    4444
    4545/** Virtual operations for page subsystem. */
    46 page_operations_t *page_operations = NULL;
     46page_mapping_operations_t *page_mapping_operations = NULL;
    4747
    4848void page_init(void)
     
    8686void page_mapping_insert(as_t *as, __address page, __address frame, int flags)
    8787{
    88         ASSERT(page_operations);
    89         ASSERT(page_operations->mapping_insert);
     88        ASSERT(page_mapping_operations);
     89        ASSERT(page_mapping_operations->mapping_insert);
    9090       
    91         page_operations->mapping_insert(as, page, frame, flags);
     91        page_mapping_operations->mapping_insert(as, page, frame, flags);
    9292}
    9393
     
    105105pte_t *page_mapping_find(as_t *as, __address page)
    106106{
    107         ASSERT(page_operations);
    108         ASSERT(page_operations->mapping_find);
     107        ASSERT(page_mapping_operations);
     108        ASSERT(page_mapping_operations->mapping_find);
    109109
    110         return page_operations->mapping_find(as, page);
     110        return page_mapping_operations->mapping_find(as, page);
    111111}
Note: See TracChangeset for help on using the changeset viewer.