summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
blob: 71880e605be8c60c83d0318d808a9958fb14a65f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once
#include <kernel/arch/generic.h>

struct process {
	void *stack_top;
	struct pagedir *pages;
	struct registers regs;
};

extern struct process *process_current;

struct process *process_new();
struct process *process_clone(const struct process *orig);
_Noreturn void process_switch(struct process *proc);