--- kernel/machdep/ppc/pcb.c 2018/04/24 18:26:09 1.1 +++ kernel/machdep/ppc/pcb.c 2018/04/24 18:33:01 1.1.1.2 @@ -42,7 +42,7 @@ #import #include #include -#ifdef KDEBUG +#if KDEBUG #include #include #include @@ -142,7 +142,7 @@ void stack_attach(thread, stack, continu struct ppc_kernel_state *kss; struct pcb *pcb = thread->pcb; -#ifdef KDEBUG +#if KDEBUG if (continuation) { KERNEL_DEBUG(MACHDBG_CODE(DBG_MACH_SCHED,MACH_STACK_ATTACH), thread, thread->priority, @@ -192,10 +192,12 @@ stack_handoff( { vm_offset_t stack = stack_detach(old); +#if KDEBUG KERNEL_DEBUG(MACHDBG_CODE(DBG_MACH_SCHED,MACH_STACK_HANDOFF), old, new, old->priority, old->sched_pri, new->sched_pri); +#endif stack_attach(new, stack, 0); @@ -238,10 +240,12 @@ call_continuation( int tkss; +#if KDEBUG KERNEL_DEBUG(MACHDBG_CODE(DBG_MACH_SCHED,MACH_CALL_CONT), current_thread(), current_thread()->priority, current_thread()->sched_pri, continuation, 0); +#endif kss = STACK_IKS(current_thread()->kernel_stack); @@ -264,7 +268,7 @@ switch_context( { thread_t ret_thread; extern thread_t Switch_context(); -#ifdef KDEBUG +#if KDEBUG struct linkage_area *frame_ptr; uint i; uint lr[4]; @@ -298,7 +302,7 @@ switch_context( //disable_fpu(); #endif -#ifdef KDEBUG +#if KDEBUG KERNEL_DEBUG(MACHDBG_CODE(DBG_MACH_SCHED,MACH_SCHED) | DBG_FUNC_END, old, new, old->priority, old->sched_pri,