Changeset b5e68c8 in mainline for kernel/arch/sparc64/src/mm/sun4u/tlb.c
- Timestamp:
- 2011-05-12T16:49:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f36787d7
- Parents:
- e80329d6 (diff), 750636a (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/sparc64/src/mm/sun4u/tlb.c
re80329d6 rb5e68c8 200 200 201 201 /** ITLB miss handler. */ 202 void fast_instruction_access_mmu_miss( unative_t unused, istate_t *istate)202 void fast_instruction_access_mmu_miss(sysarg_t unused, istate_t *istate) 203 203 { 204 204 uintptr_t page_16k = ALIGN_DOWN(istate->tpc, PAGE_SIZE); … … 360 360 static void print_tlb_entry(int i, tlb_tag_read_reg_t t, tlb_data_t d) 361 361 { 362 printf("% d: vpn=%#llx, context=%d, v=%d, size=%d, nfo=%d, "363 "ie=% d, soft2=%#x, pfn=%#x, soft=%#x, l=%d, "364 "cp=% d, cv=%d, e=%d, p=%d, w=%d, g=%d\n", i,t.vpn,362 printf("%u: vpn=%#" PRIx64 ", context=%u, v=%u, size=%u, nfo=%u, " 363 "ie=%u, soft2=%#x, pfn=%#x, soft=%#x, l=%u, " 364 "cp=%u, cv=%u, e=%u, p=%u, w=%u, g=%u\n", i, (uint64_t) t.vpn, 365 365 t.context, d.v, d.size, d.nfo, d.ie, d.soft2, 366 366 d.pfn, d.soft, d.l, d.cp, d.cv, d.e, d.p, d.w, d.g); … … 441 441 uintptr_t va, const char *str) 442 442 { 443 fault_if_from_uspace(istate, "%s, Address=%p.", str,va);443 fault_if_from_uspace(istate, "%s, address=%p.", str, (void *) va); 444 444 panic_memtrap(istate, PF_ACCESS_EXEC, va, str); 445 445 } … … 451 451 452 452 va = tag.vpn << MMU_PAGE_WIDTH; 453 fault_if_from_uspace(istate, "%s, Page=%p (ASID=%d).", str, va,454 tag.context);453 fault_if_from_uspace(istate, "%s, page=%p (asid=%u).", str, 454 (void *) va, tag.context); 455 455 panic_memtrap(istate, PF_ACCESS_UNKNOWN, va, str); 456 456 } … … 462 462 463 463 va = tag.vpn << MMU_PAGE_WIDTH; 464 fault_if_from_uspace(istate, "%s, Page=%p (ASID=%d).", str, va,465 tag.context);464 fault_if_from_uspace(istate, "%s, page=%p (asid=%u).", str, 465 (void *) va, tag.context); 466 466 panic_memtrap(istate, PF_ACCESS_WRITE, va, str); 467 467 } … … 484 484 sfsr.e, sfsr.ct, sfsr.pr, sfsr.w, sfsr.ow, sfsr.fv); 485 485 #endif 486 487 printf("DTLB SFAR: address=%p\n", sfar);486 487 printf("DTLB SFAR: address=%p\n", (void *) sfar); 488 488 489 489 dtlb_sfsr_write(0); … … 508 508 #endif 509 509 510 printf("DTLB SFAR: address=%p\n", sfar);510 printf("DTLB SFAR: address=%p\n", (void *) sfar); 511 511 512 512 dtlb_sfsr_write(0);
Note:
See TracChangeset
for help on using the changeset viewer.