sched: add base for scheduling and task switching

This commit is contained in:
anna 2021-10-15 00:01:47 +02:00
parent 14e673b8dd
commit b2fccf1ecd
Signed by: fef
GPG key ID: EC22E476DC2D3D84
9 changed files with 341 additions and 0 deletions

View file

@ -1,6 +1,7 @@
/* See the end of this file for copyright and license terms. */
#include <gay/irq.h>
#include <gay/sched.h>
/**
* @brief Main kernel entry point.
@ -15,7 +16,14 @@
*/
int main(int argc, char *argv[])
{
int err;
irq_init();
err = sched_init();
if (err)
return err;
return 0;
}