mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 21:28:21 +00:00
apic ipis, scheduler stub, crappy and slow tlb shootdown
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
#ifndef _SCHED_H_INCLUDE
|
||||
#define _SCHED_H_INCLUDE
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <arch/regs.h>
|
||||
#include <kernel/vfs.h>
|
||||
|
||||
#define THREAD_STATE_WAITING 0
|
||||
#define THREAD_STATE_RUNNING 1
|
||||
#define THREAD_STATE_BLOCKED 2
|
||||
|
||||
struct _proc_t;
|
||||
|
||||
typedef struct _thread_t{
|
||||
struct _thread_t* next;
|
||||
struct _proc_t* proc;
|
||||
arch_regs* regs;
|
||||
size_t state;
|
||||
void* kernelstack;
|
||||
} thread_t;
|
||||
|
||||
typedef struct _proc_t{
|
||||
struct _proc_t* parent;
|
||||
struct _proc_t* sibling;
|
||||
struct _proc_t* child;
|
||||
pid_t pid;
|
||||
gid_t gid;
|
||||
uid_t uid;
|
||||
dirnode_t* root;
|
||||
dirnode_t* cwd;
|
||||
} proc_t;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user