aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/syscall')
-rw-r--r--src/kernel/syscall/actions/sys_exec.c2
-rw-r--r--src/kernel/syscall/actions/sys_fork.c8
-rw-r--r--src/kernel/syscall/actions/sys_free.c2
-rw-r--r--src/kernel/syscall/actions/sys_get_pid.c2
-rw-r--r--src/kernel/syscall/actions/sys_malloc.c2
-rw-r--r--src/kernel/syscall/actions/sys_map.c2
-rw-r--r--src/kernel/syscall/actions/sys_read.c2
-rw-r--r--src/kernel/syscall/actions/sys_wait.c4
-rw-r--r--src/kernel/syscall/actions/sys_write.c2
-rw-r--r--src/kernel/syscall/syscall.c10
-rw-r--r--src/kernel/syscall/syscall.h2
11 files changed, 19 insertions, 19 deletions
diff --git a/src/kernel/syscall/actions/sys_exec.c b/src/kernel/syscall/actions/sys_exec.c
index 99c6539..a74bd29 100644
--- a/src/kernel/syscall/actions/sys_exec.c
+++ b/src/kernel/syscall/actions/sys_exec.c
@@ -1,6 +1,6 @@
+#include <io/io.h>
#include <stdint.h>
#include <tasks/process.h>
-#include <io/io.h>
u32 sys_exec(char *path)
{
diff --git a/src/kernel/syscall/actions/sys_fork.c b/src/kernel/syscall/actions/sys_fork.c
index 084659e..ae1b17f 100644
--- a/src/kernel/syscall/actions/sys_fork.c
+++ b/src/kernel/syscall/actions/sys_fork.c
@@ -1,10 +1,10 @@
-#include <stdint.h>
#include <interrupts/interrupts.h>
-#include <memory/paging.h>
-#include <tasks/process.h>
+#include <io/io.h>
#include <lib/lib.h>
+#include <memory/paging.h>
+#include <stdint.h>
#include <system.h>
-#include <io/io.h>
+#include <tasks/process.h>
u32 sys_fork(struct regs *r)
{
diff --git a/src/kernel/syscall/actions/sys_free.c b/src/kernel/syscall/actions/sys_free.c
index a7daf2f..79e5096 100644
--- a/src/kernel/syscall/actions/sys_free.c
+++ b/src/kernel/syscall/actions/sys_free.c
@@ -1,5 +1,5 @@
-#include <stdint.h>
#include <memory/alloc.h>
+#include <stdint.h>
u32 sys_free(u32 ptr)
{
diff --git a/src/kernel/syscall/actions/sys_get_pid.c b/src/kernel/syscall/actions/sys_get_pid.c
index eb00abe..1184ce7 100644
--- a/src/kernel/syscall/actions/sys_get_pid.c
+++ b/src/kernel/syscall/actions/sys_get_pid.c
@@ -4,4 +4,4 @@
u32 sys_get_pid()
{
return current_proc->pid;
-}
+} \ No newline at end of file
diff --git a/src/kernel/syscall/actions/sys_malloc.c b/src/kernel/syscall/actions/sys_malloc.c
index da21a2d..750530d 100644
--- a/src/kernel/syscall/actions/sys_malloc.c
+++ b/src/kernel/syscall/actions/sys_malloc.c
@@ -1,5 +1,5 @@
-#include <stdint.h>
#include <memory/alloc.h>
+#include <stdint.h>
u32 sys_malloc(u32 count)
{
diff --git a/src/kernel/syscall/actions/sys_map.c b/src/kernel/syscall/actions/sys_map.c
index 441722e..5af2c2a 100644
--- a/src/kernel/syscall/actions/sys_map.c
+++ b/src/kernel/syscall/actions/sys_map.c
@@ -1,5 +1,5 @@
-#include <stdint.h>
#include <events/event.h>
+#include <stdint.h>
u32 sys_map(u32 id, u8 *function)
{
diff --git a/src/kernel/syscall/actions/sys_read.c b/src/kernel/syscall/actions/sys_read.c
index 8b16064..b0428a8 100644
--- a/src/kernel/syscall/actions/sys_read.c
+++ b/src/kernel/syscall/actions/sys_read.c
@@ -1,5 +1,5 @@
-#include <stdint.h>
#include <fs/fs.h>
+#include <stdint.h>
u32 sys_read(char *path, u32 offset, u32 count, u8 *buf)
{
diff --git a/src/kernel/syscall/actions/sys_wait.c b/src/kernel/syscall/actions/sys_wait.c
index 4d12886..c716221 100644
--- a/src/kernel/syscall/actions/sys_wait.c
+++ b/src/kernel/syscall/actions/sys_wait.c
@@ -1,6 +1,6 @@
+#include <io/io.h>
#include <stdint.h>
#include <tasks/process.h>
-#include <io/io.h>
u32 sys_wait(u32 pid, u32 *status, u32 options)
{
@@ -24,4 +24,4 @@ u32 sys_wait(u32 pid, u32 *status, u32 options)
}
return ret;
-}
+} \ No newline at end of file
diff --git a/src/kernel/syscall/actions/sys_write.c b/src/kernel/syscall/actions/sys_write.c
index 4d4275a..585a545 100644
--- a/src/kernel/syscall/actions/sys_write.c
+++ b/src/kernel/syscall/actions/sys_write.c
@@ -1,5 +1,5 @@
-#include <stdint.h>
#include <fs/fs.h>
+#include <stdint.h>
u32 sys_write(char *path, u32 offset, u32 count, u8 *buf)
{
diff --git a/src/kernel/syscall/syscall.c b/src/kernel/syscall/syscall.c
index 956bc37..2ae60b2 100644
--- a/src/kernel/syscall/syscall.c
+++ b/src/kernel/syscall/syscall.c
@@ -1,10 +1,10 @@
-#include <stdint.h>
#include <common.h>
-#include <syscall/syscall.h>
#include <interrupts/interrupts.h>
-#include <system.h>
-#include <lib/stdio.h>
#include <io/io.h>
+#include <lib/stdio.h>
+#include <stdint.h>
+#include <syscall/syscall.h>
+#include <system.h>
#include <tasks/process.h>
typedef u32 (*syscall_func)(u32, ...);
@@ -46,4 +46,4 @@ void syscall_handler(struct regs *r)
void syscalls_install()
{
isr_install_handler(0x80, syscall_handler);
-}
+} \ No newline at end of file
diff --git a/src/kernel/syscall/syscall.h b/src/kernel/syscall/syscall.h
index c5167a4..7e37c81 100644
--- a/src/kernel/syscall/syscall.h
+++ b/src/kernel/syscall/syscall.h
@@ -1,8 +1,8 @@
#ifndef MELVIX_SYSCALL_H
#define MELVIX_SYSCALL_H
-#include <stdint.h>
#include <interrupts/interrupts.h>
+#include <stdint.h>
extern void idt_syscall();