aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/features/proc.c')
-rw-r--r--kernel/features/proc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/features/proc.c b/kernel/features/proc.c
index c6de9c0..574df68 100644
--- a/kernel/features/proc.c
+++ b/kernel/features/proc.c
@@ -58,6 +58,12 @@ HOT FLATTEN void scheduler(struct regs *regs)
memory_switch_dir(PROC(current)->page_dir);
memcpy(regs, &PROC(current)->regs, sizeof(*regs));
+#if DEBUG_SCHEDULER
+ if (current != idle_proc)
+ printf("%s (%d): eip %x esp %x useresp %x\n", PROC(current)->name,
+ PROC(current)->pid, regs->eip, regs->esp, regs->useresp);
+#endif
+
locked = 0;
}