From 19ef0a8627687a25410b83ecfd8a0a27d3dc4aa5 Mon Sep 17 00:00:00 2001 From: vmttmv Date: Fri, 16 Jan 2026 20:49:06 +0200 Subject: [PATCH] Fix includes for string.h/string_utils.h --- kernel/display.c | 3 ++- kernel/vga.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/display.c b/kernel/display.c index a22dc24..c4acb37 100644 --- a/kernel/display.c +++ b/kernel/display.c @@ -1,3 +1,4 @@ +#include #include "display.h" #include "io.h" #include "vga.h" @@ -62,7 +63,7 @@ void clear_display(void) { // Helper function to write a string void display_write_string(const char* str) { // Use the VGA driver's string writing function - vga_write_string(str, my_strlen(str)); + vga_write_string(str, strlen(str)); } // Helper function to print a formatted string diff --git a/kernel/vga.c b/kernel/vga.c index 4a070ac..205d392 100644 --- a/kernel/vga.c +++ b/kernel/vga.c @@ -1,9 +1,9 @@ -#include "vga.h" #include #include #include #include -#include "klibc/include/string.h" +#include "string_utils.h" +#include "vga.h" void outb(uint16_t port, uint8_t value) { __asm__ volatile("outb %0, %1" : : "a"(value), "Nd"(port));