aboutsummaryrefslogtreecommitdiff
path: root/kernel/features
diff options
context:
space:
mode:
authorMarvin Borner2021-05-18 18:37:19 +0200
committerMarvin Borner2021-05-18 18:37:50 +0200
commit4b4bfec8a312132acc84b5166998d0cfa7c01931 (patch)
treeeeb494cf539b4bfdb6dae23a34f5f1c5d7167667 /kernel/features
parenteb13f2a8f536fecf918699bc19b3087a78a417d6 (diff)
Improved entire building chain (especially debugging)
Diffstat (limited to 'kernel/features')
-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;
}