summaryrefslogtreecommitdiff
path: root/kc
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2022-03-17 15:07:28 +0000
committerAda Christine <adachristine18@gmail.com>2022-03-17 15:07:28 +0000
commit5826f2045cca28b7c9ba8a5b65b4b4928eb6b461 (patch)
tree70506b3a706711e1614c4e98b5d64bb14c4a4c8e /kc
parent65a111a543f49c645ec21ef44f289c29ccb27e8d (diff)
loader now uses bespoke kprintf(), no longer depends on libefi
Diffstat (limited to 'kc')
-rw-r--r--kc/api/lib.h14
-rw-r--r--kc/boot/Makefile2
2 files changed, 1 insertions, 15 deletions
diff --git a/kc/api/lib.h b/kc/api/lib.h
deleted file mode 100644
index c28e17c..0000000
--- a/kc/api/lib.h
+++ /dev/null
@@ -1,14 +0,0 @@
-#pragma once
-
-#include <stddef.h>
-
-void *memcpy(void *dest, const void *src, size_t size);
-void *memmove(void *dest, const void *src, size_t size);
-void *memset(void *dest, int val, size_t size);
-int memcmp(const void *str1, const void *str2, size_t count);
-size_t strlen(const char *s);
-unsigned long long strtoull(
- const char *restrict begin,
- char **restrict end,
- int base);
-
diff --git a/kc/boot/Makefile b/kc/boot/Makefile
index 44ae161..297b6df 100644
--- a/kc/boot/Makefile
+++ b/kc/boot/Makefile
@@ -7,7 +7,7 @@ VPATH := ../../lib ../
TARGET := efi.os
.DEFAULT: $(TARGET)
-CPPFLAGS += -I../../api -I ../api
+CPPFLAGS += -I../../api -I ../api -I../../lib
OBJS := entry_x86_64.o reloc_x86_64.o dynamic_x86_64.o \
kc_main.o elf64.o memcmp.o memcpy.o \
memmove.o memset.o loader_paging.o