Changeset f66b565 in mainline for kernel/test/mm/mapping1.c
- Timestamp:
- 2011-05-23T19:29:10Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 655f70b
- Parents:
- 1cab9972
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/mm/mapping1.c
r1cab9972 rf66b565 35 35 #include <typedefs.h> 36 36 #include <debug.h> 37 #include <arch.h> 37 38 38 39 #define PAGE0 0x10000000 … … 58 59 *((uint32_t *) frame1) = VALUE1; 59 60 61 page_table_lock(AS, true); 62 60 63 TPRINTF("Mapping virtual address %p to physical address %p.\n", 61 64 (void *) PAGE0, (void *) KA2PA(frame0)); … … 65 68 (void *) PAGE1, (void *) KA2PA(frame1)); 66 69 page_mapping_insert(AS_KERNEL, PAGE1, KA2PA(frame1), PAGE_PRESENT | PAGE_WRITE); 70 71 page_table_unlock(AS, true); 67 72 68 73 v0 = *((uint32_t *) PAGE0);
Note:
See TracChangeset
for help on using the changeset viewer.