summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordzwdz2021-08-24 16:56:17 +0200
committerdzwdz2021-08-24 16:56:17 +0200
commit31c1536e68399a199a09fa55571fa5bdd92cbef7 (patch)
treeb41d4de2255d7902146081cf61bb16fd2ddcbba5 /src
parent8625003ed7f688a62988f03cc6987574b9d591d2 (diff)
move syscalls.h to shared/syscalls.h
Diffstat (limited to 'src')
-rw-r--r--src/init/main.c2
-rw-r--r--src/init/syscalls.c2
-rw-r--r--src/kernel/syscalls.c2
-rw-r--r--src/shared/syscalls.h (renamed from src/kernel/syscalls.h)1
4 files changed, 3 insertions, 4 deletions
diff --git a/src/init/main.c b/src/init/main.c
index 7c1c882..06ac3a2 100644
--- a/src/init/main.c
+++ b/src/init/main.c
@@ -1,5 +1,5 @@
-#include <kernel/syscalls.h>
#include <shared/magic.h>
+#include <shared/syscalls.h>
#include <stdint.h>
// takes a cstring and copies it right before a page boundary
diff --git a/src/init/syscalls.c b/src/init/syscalls.c
index 9422e79..8d87beb 100644
--- a/src/init/syscalls.c
+++ b/src/init/syscalls.c
@@ -1,5 +1,5 @@
// this file could probably just get generated by a script
-#include <kernel/syscalls.h>
+#include <shared/syscalls.h>
int _syscall(int, int, int, int);
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c
index 9e64b01..7544174 100644
--- a/src/kernel/syscalls.c
+++ b/src/kernel/syscalls.c
@@ -2,8 +2,8 @@
#include <kernel/mem.h>
#include <kernel/panic.h>
#include <kernel/proc.h>
-#include <kernel/syscalls.h>
#include <kernel/vfs/path.h>
+#include <shared/syscalls.h>
#include <stdint.h>
_Noreturn static void await_finish(struct process *dead, struct process *listener) {
diff --git a/src/kernel/syscalls.h b/src/shared/syscalls.h
index c390c73..89907ae 100644
--- a/src/kernel/syscalls.h
+++ b/src/shared/syscalls.h
@@ -1,4 +1,3 @@
-// note: this file gets included in both kernel and userland
#pragma once
#include <stddef.h>