diff --git a/arch/x86/include/asm/string.h b/arch/x86/include/asm/string.h index 6ce57543..f31b6b60 100644 --- a/arch/x86/include/asm/string.h +++ b/arch/x86/include/asm/string.h @@ -80,6 +80,14 @@ inline static size_t strlen(const char *str) } #endif +#ifdef HAVE_ARCH_STRNCPY +char* strncpy(char *dest, const char *src, size_t n); +#endif + +#ifdef HAVE_ARCH_STRCPY +char* strcpy(char *dest, const char *src); +#endif + #ifdef __cplusplus } #endif diff --git a/arch/x86/kernel/Makefile b/arch/x86/kernel/Makefile index 658b4476..e25883ee 100644 --- a/arch/x86/kernel/Makefile +++ b/arch/x86/kernel/Makefile @@ -1,5 +1,5 @@ C_source = rck.c syscall.c gdt.c kb.c timer.c irq.c isrs.c idt.c vga.c multiboot.c pci.c -ASM_source = entry.asm +ASM_source = entry.asm string.asm OBJS += $(patsubst %.c, %.o, $(filter %.c, $(C_source))) OBJS += $(patsubst %.asm, %.o, $(filter %.asm, $(ASM_source)))