sched: add base for scheduling and task switching
This commit is contained in:
parent
14e673b8dd
commit
b2fccf1ecd
9 changed files with 341 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue