summaryrefslogtreecommitdiff
path: root/kernel/include/process.h
blob: 7e8f59dd81e19affbc3f563014d6e79dc8cc3100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef PROCESS_H
#define PROCESS_H

#include <registers.h>
#include <libk/list.h>

#define STATUS_READY 0
#define STATUS_RUNNING 1
#define STATUS_WAITING 2

struct process_t {
	registers_t registers;
	list_t* next;
	uint32_t status;
	uint32_t pid;
	uint32_t time_using_cpu;
};
typedef struct process_t process_t;

extern process_t process_list;
extern process_t current_process;

void create_process(uint64_t rip, uint64_t param1, uint64_t param2);

#endif