sched: add process states
This commit is contained in:
parent
6ad5fe88b2
commit
884cd19f5b
1 changed files with 5 additions and 0 deletions
|
|
@ -5,6 +5,10 @@
|
|||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#define PROC_RUNNING 0
|
||||
#define PROC_STOPPED 1
|
||||
#define PROC_BLOCKED 2
|
||||
|
||||
typedef uint64_t pid_t;
|
||||
|
||||
struct procregs {
|
||||
|
|
@ -40,6 +44,7 @@ struct proc {
|
|||
uint64_t cr3;
|
||||
|
||||
bool is_kernel;
|
||||
uint8_t state;
|
||||
};
|
||||
|
||||
struct procregs *proc_current_regs();
|
||||
|
|
|
|||
Loading…
Reference in a new issue