diff options
author | Marvin Borner | 2020-05-06 19:04:05 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-06 19:04:05 +0200 |
commit | d94ffac4a584dc7a4f6f2ec567b8caab05ce9253 (patch) | |
tree | 559cd596a0a407d4b40c1d12d3c6a0686494da16 /src/kernel/tasks/userspace.c | |
parent | 1a8563a05608b5b5e27eada44cf4790926001c68 (diff) |
New build parameters and shared includes
This changes many files but I've just applied some replace commands.. So
- nothing special!
Diffstat (limited to 'src/kernel/tasks/userspace.c')
-rw-r--r-- | src/kernel/tasks/userspace.c | 28 |
1 files changed, 14 insertions, 14 deletions
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 <stdint.h> #include <stddef.h> -#include <kernel/system.h> -#include <kernel/tasks/userspace.h> -#include <kernel/tasks/process.h> -#include <kernel/memory/paging.h> -#include <kernel/io/io.h> -#include <kernel/interrupts/interrupts.h> -#include <kernel/lib/lib.h> +#include <system.h> +#include <tasks/userspace.h> +#include <tasks/process.h> +#include <memory/paging.h> +#include <io/io.h> +#include <interrupts/interrupts.h> +#include <lib/lib.h> 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) |