Changeset 153cc76a in mainline for uspace/app/tester/mm/mapping1.c
- Timestamp:
- 2011-12-23T16:42:22Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7e1b130
- Parents:
- 4291215 (diff), 2f0dd2a (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
-
uspace/app/tester/mm/mapping1.c
r4291215 r153cc76a 35 35 #include "../tester.h" 36 36 37 #define BUFFER1_PAGES 438 #define BUFFER2_PAGES 237 #define BUFFER1_PAGES 4 38 #define BUFFER2_PAGES 2 39 39 40 40 static void *create_as_area(size_t size) 41 41 { 42 void *result = as_get_mappable_page(size);43 42 TPRINTF("Creating AS area...\n"); 44 if (as_area_create(result, size, 45 AS_AREA_READ | AS_AREA_WRITE) != result) { 43 44 void *result = as_area_create((void *) -1, size, 45 AS_AREA_READ | AS_AREA_WRITE); 46 if (result == (void *) -1) 46 47 return NULL; 47 }48 48 49 return result; 49 50 } … … 71 72 int i; 72 73 for (i = 0; i < page_count; i++) { 73 void *page_start = ((char *) area) + PAGE_SIZE * i;74 void *page_start = ((char *) area) + PAGE_SIZE * i; 74 75 int rc = as_get_physical_mapping(page_start, NULL); 75 76 if (rc != expected_rc) {
Note:
See TracChangeset
for help on using the changeset viewer.