X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/1fe5f5eb5378a47bf0f3451762743c162e40faad..f6ab9c9ababa2cf6e5c723b83ffb9362094054e8:/lunaix-os/kernel/proc0.c?ds=sidebyside diff --git a/lunaix-os/kernel/proc0.c b/lunaix-os/kernel/proc0.c index 64dbcd9..c7501af 100644 --- a/lunaix-os/kernel/proc0.c +++ b/lunaix-os/kernel/proc0.c @@ -1,6 +1,5 @@ #include #include -#include #include #include #include @@ -11,7 +10,6 @@ #include #include #include -#include #include #include #include @@ -20,8 +18,6 @@ #include -#include -#include #include #include @@ -78,8 +74,8 @@ void __proc0() { /* - * We must defer boot code/data cleaning after we successfully escape that - * area + * We must defer boot code/data cleaning to here, after we successfully + * escape that area */ boot_cleanup(); @@ -104,17 +100,16 @@ init_platform() twifs_register_plugins(); - /* we must start probing pci after all drivers are registered! */ + /* + * all device registering and loading must defered to here! + * due to limited stack size and partial scheduling context + */ pci_load_devices(); // debugger serial_init(); sdbg_init(); - // FIXME ps2 kbd is x86 PC specific, not here. - // peripherals & chipset features - ps2_kbd_init(); - // console console_start_flushing(); console_flush();