X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/1fe5f5eb5378a47bf0f3451762743c162e40faad..aa2843fdbdd9b5cc579d198fd1a9ec874642706e:/lunaix-os/kernel/proc0.c?ds=inline diff --git a/lunaix-os/kernel/proc0.c b/lunaix-os/kernel/proc0.c index 64dbcd9..c30feec 100644 --- a/lunaix-os/kernel/proc0.c +++ b/lunaix-os/kernel/proc0.c @@ -20,8 +20,6 @@ #include -#include -#include #include #include @@ -78,8 +76,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,15 +102,17 @@ 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 + // FIXME ps2 kbd is a device, must not be here ps2_kbd_init(); // console