Simple scheduler

This commit is contained in:
2018-01-10 22:28:55 +01:00
parent 1e2f81a5d8
commit 251b5f71c9
5 changed files with 50 additions and 23 deletions

View File

@@ -6,6 +6,7 @@
#include <cpu.h>
#include <interrupts.h>
#include <thread.h>
#include <scheduler.h>
void thread_function()
{
@@ -36,9 +37,9 @@ void kmain(uint64_t multiboot_magic, void *multiboot_data)
debug_ok("Boot \"Complete\"\n");
new_thread(thread_function);
new_thread(thread_function);
new_thread(thread_function);
ready(new_thread(thread_function));
ready(new_thread(thread_function));
ready(new_thread(thread_function));
yield();
PANIC("Reached end of kernel main function\n");