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