From eed77bd2970a00d1394ed027ceca5b646e4671ce Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 17 Jun 2020 18:31:46 +0200 Subject: Started rewrite --- src/kernel/tasks/process.h | 65 ---------------------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 src/kernel/tasks/process.h (limited to 'src/kernel/tasks/process.h') diff --git a/src/kernel/tasks/process.h b/src/kernel/tasks/process.h deleted file mode 100644 index 493dbe5..0000000 --- a/src/kernel/tasks/process.h +++ /dev/null @@ -1,65 +0,0 @@ -#ifndef MELVIX_PROCESS_H -#define MELVIX_PROCESS_H - -#include -#include -#include - -struct mmap { - u32 text; - u32 bss; - u32 data; - u32 stack; -}; - -struct process { - u32 cr3; - struct regs regs; - - u32 pid; - char name[256]; - - int state; - - u32 brk; - u32 handlers[6]; - - struct process *parent; - struct process *next; -}; - -void scheduler(struct regs *regs); -void process_force_switch(); - -u32 process_spawn(struct process *process); -void process_suspend(u32 pid); -void process_wake(u32 pid); - -struct process *process_from_pid(u32 pid); - -void process_init(struct process *proc); - -struct process *process_make_new(); - -u32 kexec(char *path); - -u32 uexec(char *path); -u32 uspawn(char *path); - -extern struct process *current_proc; - -extern u32 stack_hold; - -#define PID_NOT_FOUND ((struct process *)0xFFFFFFFF) - -#define PROC_RUNNING 0 -#define PROC_ASLEEP 1 - -#define PROC_THREAD 0 -#define PROC_PROC 1 -#define PROC_ROOT 2 - -#define WAIT_ERROR (-1) -#define WAIT_OKAY 0 - -#endif \ No newline at end of file -- cgit v1.2.3