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/userspace.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/kernel/tasks/userspace.c') diff --git a/src/kernel/tasks/userspace.c b/src/kernel/tasks/userspace.c index 696a9e9..9457b7e 100644 --- a/src/kernel/tasks/userspace.c +++ b/src/kernel/tasks/userspace.c @@ -1,22 +1,22 @@ #include #include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include struct process *proc_bottom = NULL; -uint32_t hl_cr3; -uint32_t hl_eip; -uint32_t hl_esp; +u32 hl_cr3; +u32 hl_eip; +u32 hl_esp; -uint32_t spawn_child(struct process *child) +u32 spawn_child(struct process *child) { - return (uint32_t)-1; + return (u32)-1; } void userspace_enter(struct process *proc) @@ -48,12 +48,12 @@ void single_yield(struct process *proc, struct regs *regs) paging_switch_directory(proc->cr3); } -uint32_t single_exit(struct regs *regs) +u32 single_exit(struct regs *regs) { //close(current_proc->stdout); //close(current_proc->stderr); - uint32_t hold = regs->ebx; + u32 hold = regs->ebx; proc_bottom = proc_bottom->next; if (proc_bottom == NULL) -- cgit v1.2.3