Files
RockOS/kernel/process.h

20 lines
310 B
C
Raw Normal View History

#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