From 9b2e28ad7a752c0fe7b60e73ca43c827b45b3ee8 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 7 May 2020 22:19:13 +0200 Subject: Added and applied include-sorting Worked better than I thought! --- src/kernel/tasks/process.c | 18 +++++++++--------- src/kernel/tasks/process.h | 4 ++-- src/kernel/tasks/userspace.c | 14 +++++++------- src/kernel/tasks/userspace.h | 2 +- 4 files changed, 19 insertions(+), 19 deletions(-) (limited to 'src/kernel/tasks') diff --git a/src/kernel/tasks/process.c b/src/kernel/tasks/process.c index 32433d8..431f1fb 100644 --- a/src/kernel/tasks/process.c +++ b/src/kernel/tasks/process.c @@ -1,15 +1,15 @@ -#include -#include -#include -#include -#include +#include #include -#include +#include #include -#include #include +#include +#include +#include +#include +#include +#include #include -#include u32 pid = 0; struct process *root; @@ -250,4 +250,4 @@ u32 uexec(char *path) proc->gid = current_proc->pid; process_spawn(proc); return 0; -} +} \ No newline at end of file diff --git a/src/kernel/tasks/process.h b/src/kernel/tasks/process.h index 9aae9bc..17467c4 100644 --- a/src/kernel/tasks/process.h +++ b/src/kernel/tasks/process.h @@ -1,9 +1,9 @@ #ifndef MELVIX_PROCESS_H #define MELVIX_PROCESS_H -#include -#include #include +#include +#include struct mmap { u32 text; diff --git a/src/kernel/tasks/userspace.c b/src/kernel/tasks/userspace.c index 77392a1..375e7bb 100644 --- a/src/kernel/tasks/userspace.c +++ b/src/kernel/tasks/userspace.c @@ -1,12 +1,12 @@ -#include +#include +#include +#include +#include #include +#include #include -#include #include -#include -#include -#include -#include +#include struct process *proc_bottom = NULL; @@ -63,4 +63,4 @@ u32 single_exit(struct regs *regs) paging_switch_directory(proc_bottom->cr3); return hold; -} +} \ No newline at end of file diff --git a/src/kernel/tasks/userspace.h b/src/kernel/tasks/userspace.h index 208476a..d66ba54 100644 --- a/src/kernel/tasks/userspace.h +++ b/src/kernel/tasks/userspace.h @@ -1,9 +1,9 @@ #ifndef MELVIX_USERSPACE_H #define MELVIX_USERSPACE_H +#include #include #include -#include u32 spawn_child(struct process *child); -- cgit v1.2.3