did some restructuring, got multitasking almost working
This commit is contained in:
20
kernel/process.h
Normal file
20
kernel/process.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef KPROCESS_H
|
||||
#define KPROCESS_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef enum {
|
||||
STATE_READY,
|
||||
STATE_SLEEPING,
|
||||
STATE_DEAD
|
||||
} process_state_t;
|
||||
|
||||
typedef struct {
|
||||
uint32_t pid;
|
||||
uint32_t esp;
|
||||
uint32_t cr3;
|
||||
process_state_t state;
|
||||
uint32_t sleep;
|
||||
} __attribute__((packed)) process_t;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user