Changeset eb522e8 in mainline for kernel/arch/ppc32/src/mm/tlb.c
- Timestamp:
- 2011-06-01T08:43:42Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8d6c1f1
- Parents:
- 9e2e715 (diff), e51a514 (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/arch/ppc32/src/mm/tlb.c
r9e2e715 reb522e8 111 111 static void pht_refill_fail(uintptr_t badvaddr, istate_t *istate) 112 112 { 113 fault_if_from_uspace(istate, "PHT Refill Exception on %p.", badvaddr); 113 fault_if_from_uspace(istate, "PHT Refill Exception on %p.", 114 (void *) badvaddr); 114 115 panic_memtrap(istate, PF_ACCESS_UNKNOWN, badvaddr, 115 116 "PHT Refill Exception."); … … 459 460 length = 0; \ 460 461 \ 461 printf(name ": page=%.*p frame=%.*p length=%d KB (mask=%#x)%s%s\n", \ 462 sizeof(upper) * 2, upper & 0xffff0000, sizeof(lower) * 2, \ 463 lower & 0xffff0000, length, mask, \ 462 printf(name ": page=%#0" PRIx32 " frame=%#0" PRIx32 \ 463 " length=%#0" PRIx32 " KB (mask=%#0" PRIx32 ")%s%s\n", \ 464 upper & UINT32_C(0xffff0000), lower & UINT32_C(0xffff0000), \ 465 length, mask, \ 464 466 ((upper >> 1) & 1) ? " supervisor" : "", \ 465 467 (upper & 1) ? " user" : ""); 466 468 467 468 469 void tlb_print(void) 469 470 { … … 473 474 uint32_t vsid = sr_get(sr << 28); 474 475 475 printf("sr[%02u]: vsid=%.*p (asid=%u)%s%s\n", sr, 476 sizeof(vsid) * 2, vsid & 0xffffff, (vsid & 0xffffff) >> 4, 476 printf("sr[%02" PRIu32 "]: vsid=%#0" PRIx32 " (asid=%" PRIu32 ")" 477 "%s%s\n", sr, vsid & UINT32_C(0x00ffffff), 478 (vsid & UINT32_C(0x00ffffff)) >> 4, 477 479 ((vsid >> 30) & 1) ? " supervisor" : "", 478 480 ((vsid >> 29) & 1) ? " user" : "");
Note:
See TracChangeset
for help on using the changeset viewer.