Changeset 677a6d5 in mainline for test/mm/mapping1/test.c


Ignore:
Timestamp:
2006-01-08T16:24:32Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f275cb3
Parents:
59adc2b
Message:

Memory management work.
Pass address space identifier to functions in page_operations to support single global page hash table.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/mm/mapping1/test.c

    r59adc2b r677a6d5  
    3030#include <mm/page.h>
    3131#include <mm/frame.h>
     32#include <mm/asid.h>
    3233#include <arch/mm/page.h>
    3334#include <arch/types.h>
     
    5657       
    5758        printf("Mapping virtual address %P to physical address %P.\n", PAGE0, KA2PA(frame0));
    58         page_mapping_insert(PAGE0, KA2PA(frame0), PAGE_PRESENT | PAGE_WRITE, 0);
     59        page_mapping_insert(PAGE0, ASID_KERNEL, KA2PA(frame0), PAGE_PRESENT | PAGE_WRITE, 0);
    5960        printf("Mapping virtual address %P to physical address %P.\n", PAGE1, KA2PA(frame1));   
    60         page_mapping_insert(PAGE1, KA2PA(frame1), PAGE_PRESENT | PAGE_WRITE, 0);
     61        page_mapping_insert(PAGE1, ASID_KERNEL, KA2PA(frame1), PAGE_PRESENT | PAGE_WRITE, 0);
    6162       
    6263        printf("Value at virtual address %P is %L.\n", PAGE0, v0 = *((__u32 *) PAGE0));
Note: See TracChangeset for help on using the changeset viewer.