X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/839da03f6ebe838d780e52190318d4c3048990f1..c3f8598f7b2e540e4040955f313a7d05de715c99:/lunaix-os/kernel/proc0.c diff --git a/lunaix-os/kernel/proc0.c b/lunaix-os/kernel/proc0.c index 3a6ea62..bef7bb7 100644 --- a/lunaix-os/kernel/proc0.c +++ b/lunaix-os/kernel/proc0.c @@ -2,7 +2,9 @@ #include #include #include +#include #include +#include #include #include #include @@ -110,11 +112,14 @@ extern multiboot_info_t* _k_init_mb_info; /* k_init.c */ void init_platform() { - assert_msg(kalloc_init(), "Fail to initialize heap"); - // 锁定所有系统预留页(内存映射IO,ACPI之类的),并且进行1:1映射 lock_reserved_memory(); + cake_init(); + + assert_msg(kalloc_init(), "Fail to initialize heap"); + valloc_init(); + acpi_init(_k_init_mb_info); apic_init(); ioapic_init(); @@ -126,6 +131,8 @@ init_platform() pci_print_device(); ahci_list_device(); + cake_stats(); + syscall_install(); console_start_flushing();