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

struct process {
	void *stack_top;
	void *esp;
	void *eip;

	struct pagedir *pages;
};

extern struct process *process_current;

struct process *process_new();
void process_switch(struct process *proc);