From 4b4bfec8a312132acc84b5166998d0cfa7c01931 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 18 May 2021 18:37:19 +0200 Subject: Improved entire building chain (especially debugging) --- kernel/features/proc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'kernel/features') 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; } -- cgit v1.2.3