Newer
Older
honey-os / src / userland / loader / main.c
@biosfood biosfood on 25 Jan 2023 411 bytes precache pci devices
#define ALLOC_MAIN

#include <hlib.h>
#include <stdint.h>

int32_t main() {
    loadFromInitrd("ioManager");
    printf("HONEY-OS - made by Lukas Eisenhauer\n");
    printf("finished loading all the essential modules\n");
    loadFromInitrd("lspci");
    uint32_t id = loadFromInitrdUninitialized("shell");
    requestName("ioManager", "setForeground", id, 0);
    request(id, getFunction(id, "main"), 0, 0);
}