mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 21:28:21 +00:00
logging: make term and printf smp safe
This commit is contained in:
@@ -30,11 +30,14 @@
|
||||
#include <kernel/block.h>
|
||||
#include <kernel/ext2.h>
|
||||
#include <kernel/cmdline.h>
|
||||
#include <arch/smp.h>
|
||||
#include <kernel/e1000.h>
|
||||
|
||||
static cpu_t bsp_cpu;
|
||||
|
||||
void kernel_entry() {
|
||||
cpu_set(&bsp_cpu);
|
||||
logging_init();
|
||||
logging_sethook(arch_e9_putc);
|
||||
arch_gdt_reload();
|
||||
arch_idt_setup();
|
||||
|
||||
Reference in New Issue
Block a user