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.
28 lines
611 B
C
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;
|
|
}
|