Changeset fc1e4f6 in mainline for genarch/src/mm/page_pt.c


Ignore:
Timestamp:
2006-01-31T00:44:08Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ef67bab
Parents:
6a3c9a7
Message:

Change page_mapping_find/insert interfaces to take as_t * as first argument
and not asid_t as second argument. This change was necessitated by the
removal of mapping array from as_area_t and the fact that an address
space doesn't have an ASID when it is created.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • genarch/src/mm/page_pt.c

    r6a3c9a7 rfc1e4f6  
    3131#include <mm/frame.h>
    3232#include <arch/mm/page.h>
    33 #include <arch/mm/asid.h>
     33#include <arch/mm/as.h>
    3434#include <arch/types.h>
    3535#include <typedefs.h>
     
    3737#include <memstr.h>
    3838
    39 static void pt_mapping_insert(__address page, asid_t asid, __address frame, int flags, __address root);
    40 static pte_t *pt_mapping_find(__address page, asid_t asid, __address root);
     39static void pt_mapping_insert(as_t *as, __address page, __address frame, int flags, __address root);
     40static pte_t *pt_mapping_find(as_t *as, __address page, __address root);
    4141
    4242page_operations_t page_pt_operations = {
     
    5050 * using 'flags'.
    5151 *
     52 * @param as Ignored.
    5253 * @param page Virtual address of the page to be mapped.
    53  * @param asid Ignored.
    5454 * @param frame Physical address of memory frame to which the mapping is done.
    5555 * @param flags Flags to be used for mapping.
    5656 * @param root Explicit PTL0 address.
    5757 */
    58 void pt_mapping_insert(__address page, asid_t asid, __address frame, int flags, __address root)
     58void pt_mapping_insert(as_t *as, __address page, __address frame, int flags, __address root)
    5959{
    6060        pte_t *ptl0, *ptl1, *ptl2, *ptl3;
     
    9898 * Find mapping for virtual page.
    9999 *
     100 * @param as Ignored.
    100101 * @param page Virtual page.
    101  * @param asid Ignored.
    102102 * @param root PTL0 address if non-zero.
    103103 *
    104104 * @return NULL if there is no such mapping; entry from PTL3 describing the mapping otherwise.
    105105 */
    106 pte_t *pt_mapping_find(__address page, asid_t asid, __address root)
     106pte_t *pt_mapping_find(as_t *as, __address page, __address root)
    107107{
    108108        pte_t *ptl0, *ptl1, *ptl2, *ptl3;
Note: See TracChangeset for help on using the changeset viewer.