Changeset a33f0a6 in mainline for kernel/test/mm/mapping1.c
- Timestamp:
- 2011-08-03T17:34:57Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1940326
- Parents:
- 52a79081 (diff), 3fab770 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/mm/mapping1.c
r52a79081 ra33f0a6 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.