From d94ffac4a584dc7a4f6f2ec567b8caab05ce9253 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 6 May 2020 19:04:05 +0200 Subject: New build parameters and shared includes This changes many files but I've just applied some replace commands.. So - nothing special! --- src/kernel/tasks/process.h | 50 +++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'src/kernel/tasks/process.h') diff --git a/src/kernel/tasks/process.h b/src/kernel/tasks/process.h index b138f60..bd6a6e7 100644 --- a/src/kernel/tasks/process.h +++ b/src/kernel/tasks/process.h @@ -2,33 +2,33 @@ #define MELVIX_PROCESS_H #include -#include -#include +#include +#include struct mmap { - uint32_t text; - uint32_t bss; - uint32_t data; - uint32_t stack; + u32 text; + u32 bss; + u32 data; + u32 stack; }; struct process { struct page_directory *cr3; struct regs registers; - uint32_t pid; - uint32_t gid; + u32 pid; + u32 gid; char *name; int state; int thread; - uint32_t stdin; - uint32_t stdout; - uint32_t stderr; + u32 stdin; + u32 stdout; + u32 stderr; - uint32_t brk; - uint32_t handlers[6]; + u32 brk; + u32 handlers[6]; struct process *parent; struct process *next; @@ -36,31 +36,31 @@ struct process { void scheduler(struct regs *regs); -void process_kill(uint32_t pid); +void process_kill(u32 pid); -uint32_t process_spawn(struct process *process); +u32 process_spawn(struct process *process); -void process_suspend(uint32_t pid); -void process_wake(uint32_t pid); -uint32_t process_child(struct process *process, uint32_t pid); -uint32_t process_fork(uint32_t pid); +void process_suspend(u32 pid); +void process_wake(u32 pid); +u32 process_child(struct process *process, u32 pid); +u32 process_fork(u32 pid); -int process_wait_gid(uint32_t gid, int *status); -int process_wait_pid(uint32_t pid, int *status); +int process_wait_gid(u32 gid, int *status); +int process_wait_pid(u32 pid, int *status); -struct process *process_from_pid(uint32_t pid); +struct process *process_from_pid(u32 pid); void process_init(struct process *proc); struct process *process_make_new(); -uint32_t kexec(char *path); +u32 kexec(char *path); -uint32_t uexec(char *path); +u32 uexec(char *path); extern struct process *current_proc; -extern uint32_t stack_hold; +extern u32 stack_hold; #define PID_NOT_FOUND ((struct process *)0xFFFFFFFF) -- cgit v1.2.3