feat: standard vga support (mode switching, framebuffer remapping)
[lunaix-os.git] / lunaix-os / kernel / proc0.c
index 3c7b2254484a871e184530cf7e1853fd94a7b129..93cc0207ef4819c648908eb2337e7d746b0ccee3 100644 (file)
@@ -10,7 +10,6 @@
 #include <lunaix/mm/pmm.h>
 #include <lunaix/mm/valloc.h>
 #include <lunaix/mm/vmm.h>
-#include <lunaix/peripheral/ps2kbd.h>
 #include <lunaix/peripheral/serial.h>
 #include <lunaix/spike.h>
 #include <lunaix/syscall.h>
@@ -19,8 +18,6 @@
 
 #include <sdbg/protocol.h>
 
-#include <hal/pci.h>
-
 #include <klibc/string.h>
 
 LOG_MODULE("PROC0")
@@ -99,20 +96,12 @@ init_platform()
             __VERSION__,
             __TIME__);
 
-    twifs_register_plugins();
-
-    /*
-     * all device registering and loading must defered to here!
-     * due to limited stack size and partial scheduling context
-     */
-    pci_load_devices();
+    device_poststage();
 
-    // debugger
-    serial_init();
-    sdbg_init();
+    twifs_register_plugins();
 
-    // FIXME ps2 kbd is a device, must not be here
-    ps2_kbd_init();
+    // FIXME Re-design needed!!
+    // sdbg_init();
 
     // console
     console_start_flushing();