kern/kernel/main.c
fef 5a5135f416
update license terms
As of now, everything except the code imported
from FreeBSD is proprietary.  Of course, it won't
be like this for long, only until we have decided
which license we like to use.  The rationale is
that releasing everything under a copyleft license
later is always easier than doing so immediately
and then changing it afterwards.
Naturally, any changes made before this commit are
still subject to the terms of the CNPL.
2021-11-15 19:23:22 +01:00

28 lines
611 B
C

/* Copyright (C) 2021 fef <owo@fef.moe>. All rights reserved. */
#include <gay/irq.h>
#include <gay/sched.h>
/**
* @brief Main kernel entry point.
*
* This is the first truly architecture independent code that will be executed.
* It bootstraps the entire kernel core and drivers, and when done, spawns the
* init daemon.
* The arguments passed to this function are the kernel command line,
* as obtained by the bootloader.
*
* (that is, when it's finished at some point lmao)
*/
int main(int argc, char *argv[])
{
int err;
irq_init();
err = sched_init();
if (err)
return err;
return 0;
}