mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[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:
@@ -62,7 +62,6 @@ lapic::lapic(uintptr_t base) :
|
||||
{
|
||||
apic_write(m_base, lapic_lvt_error, static_cast<uint32_t>(isr::isrAPICError));
|
||||
apic_write(m_base, lapic_spurious, static_cast<uint32_t>(isr::isrSpurious));
|
||||
log::info(logs::apic, "LAPIC created, base %lx", m_base);
|
||||
}
|
||||
|
||||
uint8_t
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user