Changeset 2b8b0ca in mainline for kernel/generic/src/mm/as.c
- Timestamp:
- 2008-06-03T14:46:49Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 93a3348
- Parents:
- 0f269c2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/as.c
r0f269c2 r2b8b0ca 454 454 cond = false; /* we are almost done */ 455 455 i = (start_free - b) >> PAGE_WIDTH; 456 if (!used_space_remove(area, start_free, 457 c - i)) 458 panic("Could not remove used " 459 "space.\n"); 456 if (!used_space_remove(area, start_free, c - i)) 457 panic("Could not remove used space.\n"); 460 458 } else { 461 459 /* … … 464 462 */ 465 463 if (!used_space_remove(area, b, c)) 466 panic("Could not remove used " 467 "space.\n"); 464 panic("Could not remove used space.\n"); 468 465 } 469 466 … … 1529 1526 } 1530 1527 1531 panic("Inconsistency detected while adding % dpages of used space at "1528 panic("Inconsistency detected while adding %" PRIc " pages of used space at " 1532 1529 "%p.\n", count, page); 1533 1530 } … … 1708 1705 1709 1706 error: 1710 panic("Inconsistency detected while removing % dpages of used space "1707 panic("Inconsistency detected while removing %" PRIc " pages of used space " 1711 1708 "from %p.\n", count, page); 1712 1709 } … … 1801 1798 1802 1799 mutex_lock(&area->lock); 1803 printf("as_area: %p, base=%p, pages=% d(%p - %p)\n",1800 printf("as_area: %p, base=%p, pages=%" PRIc " (%p - %p)\n", 1804 1801 area, area->base, area->pages, area->base, 1805 area->base + area->pages*PAGE_SIZE);1802 area->base + FRAMES2SIZE(area->pages)); 1806 1803 mutex_unlock(&area->lock); 1807 1804 }
Note:
See TracChangeset
for help on using the changeset viewer.