[kernel] Add thead kobject class

Add the thread kernel API object and move the scheduler to use threads
instead of processes for scheduling and task switching.
This commit is contained in:
2020-07-12 16:03:46 -07:00
parent 8687fe3786
commit 794c86f9b4
16 changed files with 504 additions and 230 deletions

View File

@@ -2,7 +2,7 @@
#include <stdint.h>
struct process;
struct TCB;
struct cpu_state
{
@@ -18,7 +18,7 @@ struct cpu_data
{
uintptr_t rsp0;
uintptr_t rsp3;
process *tcb;
TCB *tcb;
};
extern cpu_data bsp_cpu_data;