Merge branch 'console-dev'
[lunaix-os.git] / lunaix-os / kernel / proc0.c
index 79ef12e9e46e49da80ae6eff80cf7d08d8340a4c..61a6dfc16164e44fe1e1ab318f558613f64c4020 100644 (file)
@@ -1,6 +1,7 @@
 #include <arch/x86/boot/multiboot.h>
 #include <lunaix/common.h>
 #include <lunaix/lunistd.h>
+#include <lunaix/lxconsole.h>
 #include <lunaix/mm/pmm.h>
 #include <lunaix/mm/vmm.h>
 #include <lunaix/peripheral/ps2kbd.h>
@@ -90,12 +91,6 @@ init_platform()
 {
     assert_msg(kalloc_init(), "Fail to initialize heap");
 
-    // Fuck it, I will no longer bother this little 1MiB
-    // I just release 4 pages for my APIC & IOAPIC remappings
-    // for (size_t i = 0; i < 3; i++) {
-    //     vmm_del_mapping(PD_REFERENCED, (void*)(i << PG_SIZE_BITS));
-    // }
-
     // 锁定所有系统预留页(内存映射IO,ACPI之类的),并且进行1:1映射
     lock_reserved_memory();
 
@@ -118,6 +113,8 @@ init_platform()
 
     syscall_install();
 
+    console_start_flushing();
+
     unlock_reserved_memory();
 
     for (size_t i = 0; i < (uintptr_t)(&__init_hhk_end); i += PG_SIZE) {