Changeset fc1e4f6 in mainline for test/mm/mapping1/test.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
  • test/mm/mapping1/test.c

    r6a3c9a7 rfc1e4f6  
    3030#include <mm/page.h>
    3131#include <mm/frame.h>
    32 #include <mm/asid.h>
     32#include <mm/as.h>
    3333#include <arch/mm/page.h>
    3434#include <arch/types.h>
     
    5757       
    5858        printf("Mapping virtual address %P to physical address %P.\n", PAGE0, KA2PA(frame0));
    59         page_mapping_insert(PAGE0, ASID_KERNEL, KA2PA(frame0), PAGE_PRESENT | PAGE_WRITE, 0);
     59        page_mapping_insert(AS_KERNEL, PAGE0, KA2PA(frame0), PAGE_PRESENT | PAGE_WRITE, 0);
    6060        printf("Mapping virtual address %P to physical address %P.\n", PAGE1, KA2PA(frame1));   
    61         page_mapping_insert(PAGE1, ASID_KERNEL, KA2PA(frame1), PAGE_PRESENT | PAGE_WRITE, 0);
     61        page_mapping_insert(AS_KERNEL, PAGE1, KA2PA(frame1), PAGE_PRESENT | PAGE_WRITE, 0);
    6262       
    6363        printf("Value at virtual address %P is %L.\n", PAGE0, v0 = *((__u32 *) PAGE0));
Note: See TracChangeset for help on using the changeset viewer.