Changeset fbf7b4c in mainline
- Timestamp:
- 2006-06-18T10:52:41Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e600ec4
- Parents:
- 281994b
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/src/interrupt.c
r281994b rfbf7b4c 63 63 64 64 printf("-----EXCEPTION(%d) OCCURED----- ( %s )\n",n, __FUNCTION__); 65 printf("%%rip: %#ll X(%s)\n",istate->rip, symbol);66 printf("ERROR_WORD=%#ll X\n", istate->error_word);67 printf("%%rcs=%#ll X, flags=%#llX, %%cr0=%#llX\n", istate->cs, istate->rflags,read_cr0());68 printf("%%rax=%#ll X, %%rcx=%#llX, %%rdx=%#llX\n",istate->rax,istate->rcx,istate->rdx);69 printf("%%rsi=%#ll X, %%rdi=%#llX, %%r8 =%#llX\n",istate->rsi,istate->rdi,istate->r8);70 printf("%%r9 =%#ll X, %%r10 =%#llX, %%r11=%#llX\n",istate->r9,istate->r10,istate->r11);65 printf("%%rip: %#llx (%s)\n",istate->rip, symbol); 66 printf("ERROR_WORD=%#llx\n", istate->error_word); 67 printf("%%rcs=%#llx, flags=%#llx, %%cr0=%#llx\n", istate->cs, istate->rflags, read_cr0()); 68 printf("%%rax=%#llx, %%rcx=%#llx, %%rdx=%#llx\n", istate->rax, istate->rcx, istate->rdx); 69 printf("%%rsi=%#llx, %%rdi=%#llx, %%r8 =%#llx\n", istate->rsi, istate->rdi, istate->r8); 70 printf("%%r9 =%#llx, %%r10 =%#llx, %%r11=%#llx\n", istate->r9, istate->r10, istate->r11); 71 71 #ifdef CONFIG_DEBUG_ALLREGS 72 printf("%%r12=%#ll X, %%r13=%#llX, %%r14=%#llX\n",istate->r12,istate->r13,istate->r14);73 printf("%%r15=%#ll X, %%rbx=%#llX, %%rbp=%#llX\n",istate->r15,istate->rbx,&istate->rbp);72 printf("%%r12=%#llx, %%r13=%#llx, %%r14=%#llx\n", istate->r12, istate->r13, istate->r14); 73 printf("%%r15=%#llx, %%rbx=%#llx, %%rbp=%#llx\n", istate->r15, istate->rbx, &istate->rbp); 74 74 #endif 75 printf("%%rsp=%#ll X\n",&istate->stack[0]);75 printf("%%rsp=%#llx\n", &istate->stack[0]); 76 76 } 77 77 -
arch/amd64/src/mm/memory_init.c
r281994b rfbf7b4c 52 52 53 53 for (i=0;i<e820counter;i++) { 54 printf("E820 base: %#ll X size: %#llXtype: ", e820table[i].base_address, e820table[i].size);54 printf("E820 base: %#llx size: %#llx type: ", e820table[i].base_address, e820table[i].size); 55 55 switch (e820table[i].type) { 56 56 case MEMMAP_MEMORY_AVAILABLE: -
arch/amd64/src/mm/page.c
r281994b rfbf7b4c 193 193 194 194 print_info_errcode(n, istate); 195 printf("Page fault address: %ll X\n", page);195 printf("Page fault address: %llx\n", page); 196 196 panic("page fault\n"); 197 197 } -
arch/ia32/src/interrupt.c
r281994b rfbf7b4c 136 136 :"=m"(mxcsr) 137 137 ); 138 fault_if_from_uspace(istate, "SIMD FP exception(19), MXCSR: %#z X",138 fault_if_from_uspace(istate, "SIMD FP exception(19), MXCSR: %#zx", 139 139 (__native)mxcsr); 140 140 141 141 PRINT_INFO_ERRCODE(istate); 142 printf("MXCSR: %#z X\n",(__native)(mxcsr));142 printf("MXCSR: %#zx\n",(__native)(mxcsr)); 143 143 panic("SIMD FP exception(19)\n"); 144 144 } -
arch/ia64/src/mm/tlb.c
r281994b rfbf7b4c 471 471 page_table_unlock(AS, true); 472 472 if (as_page_fault(va, PF_ACCESS_EXEC, istate) == AS_PF_FAULT) { 473 fault_if_from_uspace(istate,"Page fault at % P",va);473 fault_if_from_uspace(istate,"Page fault at %p",va); 474 474 panic("%s: va=%p, rid=%d, iip=%p\n", __FUNCTION__, va, rid, istate->cr_iip); 475 475 } … … 518 518 page_table_unlock(AS, true); 519 519 if (as_page_fault(va, PF_ACCESS_READ, istate) == AS_PF_FAULT) { 520 fault_if_from_uspace(istate,"Page fault at % P",va);520 fault_if_from_uspace(istate,"Page fault at %p",va); 521 521 panic("%s: va=%p, rid=%d, iip=%p\n", __FUNCTION__, va, rid, istate->cr_iip); 522 522 } … … 564 564 } else { 565 565 if (as_page_fault(va, PF_ACCESS_WRITE, istate) == AS_PF_FAULT) { 566 fault_if_from_uspace(istate,"Page fault at % P",va);566 fault_if_from_uspace(istate,"Page fault at %p",va); 567 567 panic("%s: va=%p, rid=%d, iip=%p\n", __FUNCTION__, va, rid, istate->cr_iip); 568 568 t->d = true; … … 601 601 } else { 602 602 if (as_page_fault(va, PF_ACCESS_EXEC, istate) == AS_PF_FAULT) { 603 fault_if_from_uspace(istate,"Page fault at % P",va);603 fault_if_from_uspace(istate,"Page fault at %p",va); 604 604 panic("%s: va=%p, rid=%d, iip=%p\n", __FUNCTION__, va, rid, istate->cr_iip); 605 605 t->a = true; … … 638 638 } else { 639 639 if (as_page_fault(va, PF_ACCESS_READ, istate) == AS_PF_FAULT) { 640 fault_if_from_uspace(istate,"Page fault at % P",va);640 fault_if_from_uspace(istate,"Page fault at %p",va); 641 641 panic("%s: va=%p, rid=%d, iip=%p\n", __FUNCTION__, va, rid, istate->cr_iip); 642 642 t->a = true; … … 680 680 page_table_unlock(AS, true); 681 681 if (as_page_fault(va, PF_ACCESS_READ, istate) == AS_PF_FAULT) { 682 fault_if_from_uspace(istate,"Page fault at % P",va);682 fault_if_from_uspace(istate,"Page fault at %p",va); 683 683 panic("%s: va=%p, rid=%d\n", __FUNCTION__, va, rid); 684 684 } -
arch/mips32/src/mm/tlb.c
r281994b rfbf7b4c 345 345 sym2 = s; 346 346 347 fault_if_from_uspace(istate, "TLB Refill Exception on % P", cp0_badvaddr_read());348 panic("% X: TLB Refill Exception at %X(%s<-%s)\n", cp0_badvaddr_read(), istate->epc, symbol, sym2);347 fault_if_from_uspace(istate, "TLB Refill Exception on %p", cp0_badvaddr_read()); 348 panic("%x: TLB Refill Exception at %x(%s<-%s)\n", cp0_badvaddr_read(), istate->epc, symbol, sym2); 349 349 } 350 350 … … 357 357 if (s) 358 358 symbol = s; 359 fault_if_from_uspace(istate, "TLB Invalid Exception on % P", cp0_badvaddr_read());360 panic("% X: TLB Invalid Exception at %X(%s)\n", cp0_badvaddr_read(), istate->epc, symbol);359 fault_if_from_uspace(istate, "TLB Invalid Exception on %p", cp0_badvaddr_read()); 360 panic("%x: TLB Invalid Exception at %x(%s)\n", cp0_badvaddr_read(), istate->epc, symbol); 361 361 } 362 362 … … 368 368 if (s) 369 369 symbol = s; 370 fault_if_from_uspace(istate, "TLB Modified Exception on % P", cp0_badvaddr_read());371 panic("% X: TLB Modified Exception at %X(%s)\n", cp0_badvaddr_read(), istate->epc, symbol);370 fault_if_from_uspace(istate, "TLB Modified Exception on %p", cp0_badvaddr_read()); 371 panic("%x: TLB Modified Exception at %x(%s)\n", cp0_badvaddr_read(), istate->epc, symbol); 372 372 } 373 373 -
arch/sparc64/src/mm/tlb.c
r281994b rfbf7b4c 208 208 t.value = itlb_tag_read_read(i); 209 209 210 printf("%d: vpn=%#ll X, context=%d, v=%d, size=%d, nfo=%d, ie=%d, soft2=%#X, diag=%#X, pfn=%#X, soft=%#X, l=%d, cp=%d, cv=%d, e=%d, p=%d, w=%d, g=%d\n",210 printf("%d: vpn=%#llx, context=%d, v=%d, size=%d, nfo=%d, ie=%d, soft2=%#x, diag=%#x, pfn=%#x, soft=%#x, l=%d, cp=%d, cv=%d, e=%d, p=%d, w=%d, g=%d\n", 211 211 i, t.vpn, t.context, d.v, d.size, d.nfo, d.ie, d.soft2, d.diag, d.pfn, d.soft, d.l, d.cp, d.cv, d.e, d.p, d.w, d.g); 212 212 } … … 217 217 t.value = dtlb_tag_read_read(i); 218 218 219 printf("%d: vpn=%#ll X, context=%d, v=%d, size=%d, nfo=%d, ie=%d, soft2=%#X, diag=%#X, pfn=%#X, soft=%#X, l=%d, cp=%d, cv=%d, e=%d, p=%d, w=%d, g=%d\n",219 printf("%d: vpn=%#llx, context=%d, v=%d, size=%d, nfo=%d, ie=%d, soft2=%#x, diag=%#x, pfn=%#x, soft=%#x, l=%d, cp=%d, cv=%d, e=%d, p=%d, w=%d, g=%d\n", 220 220 i, t.vpn, t.context, d.v, d.size, d.nfo, d.ie, d.soft2, d.diag, d.pfn, d.soft, d.l, d.cp, d.cv, d.e, d.p, d.w, d.g); 221 221 } -
arch/sparc64/src/trap/exception.c
r281994b rfbf7b4c 53 53 void do_data_access_error(void) 54 54 { 55 panic("Data Access Error: % P\n", tpc_read());55 panic("Data Access Error: %p\n", tpc_read()); 56 56 } 57 57 … … 59 59 void do_illegal_instruction(void) 60 60 { 61 panic("Illegal Instruction: % P\n", tpc_read());61 panic("Illegal Instruction: %p\n", tpc_read()); 62 62 } 63 63 -
genarch/src/acpi/acpi.c
r281994b rfbf7b4c 107 107 goto next; 108 108 *signature_map[j].sdt_ptr = h; 109 printf("%#z X: ACPI %s\n", *signature_map[j].sdt_ptr, signature_map[j].description);109 printf("%#zx: ACPI %s\n", *signature_map[j].sdt_ptr, signature_map[j].description); 110 110 } 111 111 } … … 128 128 goto next; 129 129 *signature_map[j].sdt_ptr = h; 130 printf("%#z X: ACPI %s\n", *signature_map[j].sdt_ptr, signature_map[j].description);130 printf("%#zx: ACPI %s\n", *signature_map[j].sdt_ptr, signature_map[j].description); 131 131 } 132 132 } … … 162 162 163 163 rsdp_found: 164 printf("%#z X: ACPI Root System Description Pointer\n", acpi_rsdp);164 printf("%#zx: ACPI Root System Description Pointer\n", acpi_rsdp); 165 165 166 166 acpi_rsdt = (struct acpi_rsdt *) (__native) acpi_rsdp->rsdt_address; -
genarch/src/acpi/madt.c
r281994b rfbf7b4c 237 237 { 238 238 ASSERT(override->source < sizeof(isa_irq_map)/sizeof(int)); 239 printf("MADT: ignoring %s entry: bus=%zd, source=%zd, global_int=%zd, flags=%#h X\n",239 printf("MADT: ignoring %s entry: bus=%zd, source=%zd, global_int=%zd, flags=%#hx\n", 240 240 entry[override->header.type], override->bus, override->source, 241 241 override->global_int, override->flags); -
generic/include/interrupt.h
r281994b rfbf7b4c 57 57 if (istate_from_uspace(istate)) { \ 58 58 klog_printf(cmd, ##__VA_ARGS__); \ 59 klog_printf("Task %lld got exception at PC:% P. Task killed.", TASK->taskid, istate_get_pc(istate)); \59 klog_printf("Task %lld got exception at PC:%p. Task killed.", TASK->taskid, istate_get_pc(istate)); \ 60 60 task_kill(TASK->taskid); \ 61 61 thread_exit(); \ -
generic/src/console/cmd.c
r281994b rfbf7b4c 535 535 symbol = get_symtab_entry(symaddr); 536 536 537 printf("Calling f( 0x%zX): %.*p: %s\n", arg1, sizeof(__address) * 2, symaddr, symbol);537 printf("Calling f(%#zx): %.*p: %s\n", arg1, sizeof(__address) * 2, symaddr, symbol); 538 538 #ifdef ia64 539 539 fptr.f = symaddr; -
generic/src/ipc/ipc.c
r281994b rfbf7b4c 479 479 break; 480 480 case IPC_PHONE_CONNECTED: 481 printf("connected to: % P",481 printf("connected to: %p ", 482 482 task->phones[i].callee); 483 483 break; 484 484 case IPC_PHONE_SLAMMED: 485 printf("slammed by: % P",485 printf("slammed by: %p ", 486 486 task->phones[i].callee); 487 487 break; 488 488 case IPC_PHONE_HUNGUP: 489 printf("hung up - was: % P",489 printf("hung up - was: %p ", 490 490 task->phones[i].callee); 491 491 break; … … 504 504 for (tmp=task->answerbox.calls.next; tmp != &task->answerbox.calls;tmp = tmp->next) { 505 505 call = list_get_instance(tmp, call_t, link); 506 printf("Callid: % PSrctask:%lld M:%d A1:%d A2:%d A3:%d Flags:%x\n",call,506 printf("Callid: %p Srctask:%lld M:%d A1:%d A2:%d A3:%d Flags:%x\n",call, 507 507 call->sender->taskid, IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), 508 508 IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), call->flags); … … 514 514 tmp = tmp->next) { 515 515 call = list_get_instance(tmp, call_t, link); 516 printf("Callid: % PSrctask:%lld M:%d A1:%d A2:%d A3:%d Flags:%x\n",call,516 printf("Callid: %p Srctask:%lld M:%d A1:%d A2:%d A3:%d Flags:%x\n",call, 517 517 call->sender->taskid, IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), 518 518 IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), call->flags); … … 522 522 for (tmp=task->answerbox.answers.next; tmp != &task->answerbox.answers; tmp = tmp->next) { 523 523 call = list_get_instance(tmp, call_t, link); 524 printf("Callid:% PM:%d A1:%d A2:%d A3:%d Flags:%x\n",call,524 printf("Callid:%p M:%d A1:%d A2:%d A3:%d Flags:%x\n",call, 525 525 IPC_GET_METHOD(call->data), IPC_GET_ARG1(call->data), 526 526 IPC_GET_ARG2(call->data), IPC_GET_ARG3(call->data), call->flags); -
generic/src/mm/as.c
r281994b rfbf7b4c 1310 1310 } 1311 1311 1312 panic("Inconsistency detected while adding %d pages of used space at % P.\n", count, page);1312 panic("Inconsistency detected while adding %d pages of used space at %p.\n", count, page); 1313 1313 } 1314 1314 … … 1464 1464 1465 1465 error: 1466 panic("Inconsistency detected while removing %d pages of used space from % P.\n", count, page);1466 panic("Inconsistency detected while removing %d pages of used space from %p.\n", count, page); 1467 1467 } 1468 1468 -
generic/src/proc/task.c
r281994b rfbf7b4c 356 356 357 357 spinlock_lock(&t->lock); 358 printf("%s(%lld): address=%#z X, as=%#zX, ActiveCalls: %zd",358 printf("%s(%lld): address=%#zx, as=%#zx, ActiveCalls: %zd", 359 359 t->name, t->taskid, t, t->as, atomic_get(&t->active_calls)); 360 360 for (j=0; j < IPC_MAX_PHONES; j++) { 361 361 if (t->phones[j].callee) 362 printf(" Ph(%zd): %#z X", j, t->phones[j].callee);362 printf(" Ph(%zd): %#zx ", j, t->phones[j].callee); 363 363 } 364 364 printf("\n"); -
generic/src/proc/thread.c
r281994b rfbf7b4c 537 537 538 538 t = (thread_t *) node->value[i]; 539 printf("%s: address=%#z X, tid=%zd, state=%s, task=%#zX, code=%#zX, stack=%#zX, cpu=",539 printf("%s: address=%#zx, tid=%zd, state=%s, task=%#zx, code=%#zx, stack=%#zx, cpu=", 540 540 t->name, t, t->tid, thread_states[t->state], t->task, t->thread_code, t->kstack); 541 541 if (t->cpu) … … 544 544 printf("none"); 545 545 if (t->state == Sleeping) { 546 printf(", kst=%#z X", t->kstack);547 printf(", wq=%#z X", t->sleep_queue);546 printf(", kst=%#zx", t->kstack); 547 printf(", wq=%#zx", t->sleep_queue); 548 548 } 549 549 printf("\n"); -
generic/src/sysinfo/sysinfo.c
r281994b rfbf7b4c 245 245 } 246 246 247 printf("%s %s val:%d(% X) sub:%s\n", root->name, vtype, val, val, (root->subinfo_type == SYSINFO_SUBINFO_NONE) ? "NON" : ((root->subinfo_type == SYSINFO_SUBINFO_TABLE) ? "TAB" : "FUN"));247 printf("%s %s val:%d(%x) sub:%s\n", root->name, vtype, val, val, (root->subinfo_type == SYSINFO_SUBINFO_NONE) ? "NON" : ((root->subinfo_type == SYSINFO_SUBINFO_TABLE) ? "TAB" : "FUN")); 248 248 249 249 if (root->subinfo_type == SYSINFO_SUBINFO_TABLE) -
test/print/print1/test.c
r281994b rfbf7b4c 50 50 printf(" 0xint: x '%#x', 5.3x '%#5.3x', -5.3x '%#-5.3x', 3.5x '%#3.5x', -3.5x '%#-3.5x' \n",17, 17, 17, 17, 17 ); 51 51 52 printf("'%#llx' 64bit, '%#x' 32bit, '%#hhx' 8bit, '%#hx' 16bit, __native '%#z X'. '%#llX' 64bit and '%s' string.\n", 0x1234567887654321ll, 0x12345678, 0x12, 0x1234, nat, 0x1234567887654321ull, "Lovely string" );52 printf("'%#llx' 64bit, '%#x' 32bit, '%#hhx' 8bit, '%#hx' 16bit, __native '%#zx'. '%#llx' 64bit and '%s' string.\n", 0x1234567887654321ll, 0x12345678, 0x12, 0x1234, nat, 0x1234567887654321ull, "Lovely string" ); 53 53 54 54 printf(" Print to NULL '%s'\n",NULL);
Note:
See TracChangeset
for help on using the changeset viewer.