Changeset fc1e4f6 in mainline for test/mm/mapping1/test.c
- Timestamp:
- 2006-01-31T00:44:08Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ef67bab
- Parents:
- 6a3c9a7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/mm/mapping1/test.c
r6a3c9a7 rfc1e4f6 30 30 #include <mm/page.h> 31 31 #include <mm/frame.h> 32 #include <mm/as id.h>32 #include <mm/as.h> 33 33 #include <arch/mm/page.h> 34 34 #include <arch/types.h> … … 57 57 58 58 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); 60 60 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); 62 62 63 63 printf("Value at virtual address %P is %L.\n", PAGE0, v0 = *((__u32 *) PAGE0));
Note:
See TracChangeset
for help on using the changeset viewer.