diff options
Diffstat (limited to 'src/lib/libkogata')
-rw-r--r-- | src/lib/libkogata/Makefile | 11 | ||||
-rw-r--r-- | src/lib/libkogata/debug.c | 13 | ||||
-rw-r--r-- | src/lib/libkogata/malloc.c | 11 | ||||
-rw-r--r-- | src/lib/libkogata/start.c | 9 | ||||
-rw-r--r-- | src/lib/libkogata/syscall.c | 10 |
5 files changed, 54 insertions, 0 deletions
diff --git a/src/lib/libkogata/Makefile b/src/lib/libkogata/Makefile new file mode 100644 index 0000000..2649e25 --- /dev/null +++ b/src/lib/libkogata/Makefile @@ -0,0 +1,11 @@ +OBJ = start.o malloc.o debug.o syscall.o + +LIB = ../../common/libkogata/libkogata.lib + +CFLAGS = -I ../include -I ../../common/include + +LDFLAGS = + +OUT = libkogata.lib + +include ../../rules.make diff --git a/src/lib/libkogata/debug.c b/src/lib/libkogata/debug.c new file mode 100644 index 0000000..27c9e28 --- /dev/null +++ b/src/lib/libkogata/debug.c @@ -0,0 +1,13 @@ +#include <stdbool.h> + +#include <debug.h> + +void panic(const char* msg, const char* file, int line) { + // TODO + while(true); +} + +void panic_assert(const char* assert, const char* file, int line) { + // TODO + while(true); +} diff --git a/src/lib/libkogata/malloc.c b/src/lib/libkogata/malloc.c new file mode 100644 index 0000000..c776cdf --- /dev/null +++ b/src/lib/libkogata/malloc.c @@ -0,0 +1,11 @@ +#include <malloc.h> + +void* malloc(size_t size) { + // TODO + return 0; +} + +void free(void* ptr) { + // TODO +} + diff --git a/src/lib/libkogata/start.c b/src/lib/libkogata/start.c new file mode 100644 index 0000000..88a4eb3 --- /dev/null +++ b/src/lib/libkogata/start.c @@ -0,0 +1,9 @@ +#include <stddef.h> +#include <stdint.h> +#include <stdbool.h> + +void __libkogata_start() { + // TODO + while(true); +} + diff --git a/src/lib/libkogata/syscall.c b/src/lib/libkogata/syscall.c new file mode 100644 index 0000000..234b9ff --- /dev/null +++ b/src/lib/libkogata/syscall.c @@ -0,0 +1,10 @@ +#include <debug.h> +#include <syscall.h> + +void dbg_print(const char* str) { + // TODO +} + +void yield() { + // TODO +} |