Changeset fd3c9e5 in mainline for test/mm/mapping1/test.c
- Timestamp:
- 2005-10-07T09:53:17Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 92e5431
- Parents:
- cc205f1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/mm/mapping1/test.c
rcc205f1 rfd3c9e5 53 53 *((__u32 *) frame1) = VALUE1; 54 54 55 printf("Mapping % X to %X.\n", PAGE0, KA2PA(frame0));55 printf("Mapping %P to %P.\n", PAGE0, KA2PA(frame0)); 56 56 map_page_to_frame(PAGE0, KA2PA(frame0), PAGE_PRESENT, 0); 57 printf("Mapping % X to %X.\n", PAGE1, KA2PA(frame1));57 printf("Mapping %P to %P.\n", PAGE1, KA2PA(frame1)); 58 58 map_page_to_frame(PAGE1, KA2PA(frame1), PAGE_PRESENT, 0); 59 59 60 printf("Value at % X is %X.\n", PAGE0, v0 = *((__u32 *) PAGE0));61 printf("Value at % X is %X.\n", PAGE1, v1 = *((__u32 *) PAGE1));60 printf("Value at %P is %L.\n", PAGE0, v0 = *((__u32 *) PAGE0)); 61 printf("Value at %P is %L.\n", PAGE1, v1 = *((__u32 *) PAGE1)); 62 62 63 63 ASSERT(v0 == VALUE0); 64 64 ASSERT(v1 == VALUE1); 65 65 66 printf("Writing 0 to % X.\n", PAGE0);66 printf("Writing 0 to %P.\n", PAGE0); 67 67 *((__u32 *) PAGE0) = 0; 68 printf("Writing 0 to % X.\n", PAGE1);68 printf("Writing 0 to %P.\n", PAGE1); 69 69 *((__u32 *) PAGE1) = 0; 70 70 71 printf("Value at % X is %X.\n", PAGE0, v0 = *((__u32 *) PAGE0));72 printf("Value at % X is %X.\n", PAGE1, v1 = *((__u32 *) PAGE1));71 printf("Value at %P is %L.\n", PAGE0, v0 = *((__u32 *) PAGE0)); 72 printf("Value at %P is %L.\n", PAGE1, v1 = *((__u32 *) PAGE1)); 73 73 74 74 ASSERT(v0 == 0);
Note:
See TracChangeset
for help on using the changeset viewer.