summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--kernel/libk/io.c (renamed from libk/io.c)0
-rw-r--r--kernel/libk/string.c (renamed from libk/string.c)0
-rw-r--r--lib/Makefile16
-rw-r--r--libk/stack_protector.c9
4 files changed, 16 insertions, 9 deletions
diff --git a/libk/io.c b/kernel/libk/io.c
index eedc171..eedc171 100644
--- a/libk/io.c
+++ b/kernel/libk/io.c
diff --git a/libk/string.c b/kernel/libk/string.c
index be59397..be59397 100644
--- a/libk/string.c
+++ b/kernel/libk/string.c
diff --git a/lib/Makefile b/lib/Makefile
new file mode 100644
index 0000000..c307643
--- /dev/null
+++ b/lib/Makefile
@@ -0,0 +1,16 @@
+SUBDIRS:=
+
+export ARCH VERSION PREFIX
+
+.PHONY: all clean $(SUBDIRS)
+
+all: $(SUBDIRS)
+
+subdirs: $(SUBDIRS)
+
+$(SUBDIRS):
+ $(MAKE) $(MAKECMDGOALS) -C $@
+
+clean: $(SUBDIRS)
+
+install: $(SUBDIRS)
diff --git a/libk/stack_protector.c b/libk/stack_protector.c
deleted file mode 100644
index a929ae0..0000000
--- a/libk/stack_protector.c
+++ /dev/null
@@ -1,9 +0,0 @@
-#include <kernel/panic.h>
-#include <stdint.h>
-
-uintptr_t __stack_chk_guard;
-
-__attribute__((noreturn)) void __stack_chk_fail(void) {
- panic("Detected attempted stack manipulation in kernel");
- while(1);
-}