summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2025-01-12 01:17:36 -0600
committerDanny Holman <dholman@gymli.org>2025-01-12 01:19:11 -0600
commit95cd78840f0891e60f5ebecc8a8eb4fbaf3c2ebf (patch)
treec8c35347b50477929727fa5be9f5d0f55cbe18fd /lib
parentarch: i386: kmalloc: fix last element being ignored (diff)
downloadbox-95cd78840f0891e60f5ebecc8a8eb4fbaf3c2ebf.tar.gz
box-95cd78840f0891e60f5ebecc8a8eb4fbaf3c2ebf.tar.zst
box-95cd78840f0891e60f5ebecc8a8eb4fbaf3c2ebf.zip
PROJECT RESTRUCTURING
Move the entire kernel into its own directory. Create new directories for system commands, libraries and other required essentials for a complete Unix-like operating system. Signed-off-by: Danny Holman <dholman@gymli.org>
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);
-}