Changeset 8f00329 in mainline for generic/src/mm/page.c


Ignore:
Timestamp:
2006-02-09T21:59:31Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a3eeceb6
Parents:
bfb87df
Message:

Add page_mapping_remove().

File:
1 edited

Legend:

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

    rbfb87df r8f00329  
    7272}
    7373
    74 /** Map page to frame
     74/** Insert mapping of page to frame.
    7575 *
    7676 * Map virtual address 'page' to physical address 'frame'
     
    7979 * The address space must be locked and interrupts must be disabled.
    8080 *
    81  * @param as Address space to wich page belongs..
     81 * @param as Address space to wich page belongs.
    8282 * @param page Virtual address of the page to be mapped.
    8383 * @param frame Physical address of memory frame to which the mapping is done.
     
    9090       
    9191        page_mapping_operations->mapping_insert(as, page, frame, flags);
     92}
     93
     94/** Remove mapping of page.
     95 *
     96 * Remove any mapping of 'page' within address space 'as'.
     97 * TLB shootdown should follow in order to make effects of
     98 * this call visible.
     99 *
     100 * The address space must be locked and interrupts must be disabled.
     101 *
     102 * @param as Address space to wich page belongs.
     103 * @param page Virtual address of the page to be demapped.
     104 */
     105void page_mapping_remove(as_t *as, __address page)
     106{
     107        ASSERT(page_mapping_operations);
     108        ASSERT(page_mapping_operations->mapping_remove);
     109       
     110        page_mapping_operations->mapping_remove(as, page);
    92111}
    93112
Note: See TracChangeset for help on using the changeset viewer.