[kernel] Make sure not to log from AP idle threads

The idle threads for the APs have intentionally tiny stacks. Logging is
currently an absolute hog of stack space, so avoid logging on the idle
stacks as much as possible.

Eventually we should instead just reclaim the physical pages used by
most of the stack instead of making them tiny.
This commit is contained in:
Justin C. Miller
2021-02-19 21:47:46 -08:00
parent 257158fd95
commit 2d6987341c
2 changed files with 0 additions and 3 deletions

View File

@@ -102,7 +102,6 @@ scheduler::start()
process *kp = &process::kernel_process();
thread *idle = thread::create_idle_thread(*kp, max_priority, cpu.rsp0);
log::debug(logs::task, "CPU%02x idle thread koid %llx", cpu.index, idle->koid());
auto *tcb = idle->tcb();
cpu.process = kp;
@@ -111,7 +110,6 @@ scheduler::start()
queue.current = tcb;
log::info(logs::sched, "CPU%02x starting scheduler", cpu.index);
cpu.apic->enable_timer(isr::isrTimer, false);
cpu.apic->reset_timer(10);
}