Changes in uspace/app/tester/mm/mapping1.c [fbcdeb8:b93d637] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/mm/mapping1.c
rfbcdeb8 rb93d637 35 35 #include "../tester.h" 36 36 37 #define BUFFER1_PAGES 38 #define BUFFER2_PAGES 37 #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); 42 43 TPRINTF("Creating AS area...\n"); 43 44 void *result = as_area_create((void *) -1, size, 45 AS_AREA_READ | AS_AREA_WRITE); 46 if (result == (void *) -1) 44 if (as_area_create(result, size, 45 AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE) != result) { 47 46 return NULL; 48 47 } 49 48 return result; 50 49 } … … 72 71 int i; 73 72 for (i = 0; i < page_count; i++) { 74 void *page_start = ((char *) 73 void *page_start = ((char *)area) + PAGE_SIZE * i; 75 74 int rc = as_get_physical_mapping(page_start, NULL); 76 75 if (rc != expected_rc) {
Note:
See TracChangeset
for help on using the changeset viewer.