• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/

Lines Matching defs:sv

168 void dump_backtrace(struct savearea *sv,
171 void dump_savearea(struct savearea *sv,
369 struct savearea *sv, *svssp, *psv;
384 sv = NULL;
386 sv = (struct savearea *)current_thread()->machine.pcb; /* Find most current savearea if system has started */
389 if(sv) fence = (unsigned int)sv->save_r1; /* Stop at previous exception point */
395 if(!sv) { /* Leave if no saveareas */
410 kdb_printf(" Exception state (sv=%p)\n", svssp);
414 if(!sv) { /* Leave if no saveareas */
421 while(sv) { /* Do them all... */
422 if(!(((addr64_t)((uintptr_t)sv) <= vm_last_addr) &&
423 (unsigned int)pmap_find_phys(kernel_pmap, (addr64_t)((uintptr_t)sv)))) { /* Valid address? */
424 kdb_printf(" Exception state (sv=%p) Not mapped or invalid. stopping...\n", sv);
428 kdb_printf(" Exception state (sv=%p)\n", sv);
429 if(sv == svssp) { /* Did we dump it already? */
434 if(sv->save_hdr.save_prev) {
435 if((sv->save_hdr.save_prev <= vm_last_addr) && ((unsigned int)pmap_find_phys(kernel_pmap, (addr64_t)sv->save_hdr.save_prev))) { /* Valid address? */
436 psv = (struct savearea *)((unsigned int)sv->save_hdr.save_prev); /* Get the 64-bit back chain converted to a regualr pointer */
440 dump_savearea(sv, fence); /* Dump this savearea */
443 sv = CAST_DOWN(struct savearea *, sv->save_hdr.save_prev); /* Back chain */
460 dump_savearea(struct savearea *sv, unsigned int fence)
464 if(sv->save_exception > T_MAX)
467 xcode = trap_type[sv->save_exception / 4]; /* Point to the type */
470 (unsigned int)sv->save_srr0, (unsigned int)sv->save_srr1, (unsigned int)sv->save_dar, sv->save_dsisr,
471 (unsigned int)sv->save_lr, (unsigned int)sv->save_r1, sv->save_exception, xcode);
473 if(!(sv->save_srr1 & MASK(MSR_PR))) { /* Are we in the kernel? */
474 dump_backtrace(sv, (unsigned int)sv->save_r1, fence); /* Dump the stack back trace from here if not user state */
483 void dump_backtrace(struct savearea *sv, unsigned int stackptr, unsigned int fence) {
491 if (sv != (struct savearea *)0) {
492 bframes[0] = (unsigned int)sv->save_srr0;
493 bframes[1] = (unsigned int)sv->save_lr;
675 SysChoked(unsigned int type, struct savearea *sv)
683 failcode = (unsigned int)sv->save_r3; /* Get the failure code */
686 kprintf(pmsg, cpu_number(), (unsigned int)sv->save_r3, failNames[failcode]);
687 kdb_printf(pmsg, cpu_number(), (unsigned int)sv->save_r3, failNames[failcode]);
689 print_backtrace(sv); /* Attempt to print backtrace */
701 Call_DebuggerC(type, sv); /* Attempt to get into debugger */
704 Call_DebuggerC(type, sv); /* Attempt to get into debugger */
705 panic_plain(pmsg, cpu_number(), (unsigned int)sv->save_r3, failNames[failcode]);