]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commitdiff
kernel/mm: fix WSL build (cross-compiler guard, utils, heap includes)
authorTulio A M Mendes <[email protected]>
Fri, 6 Feb 2026 00:54:33 +0000 (21:54 -0300)
committerTulio A M Mendes <[email protected]>
Fri, 6 Feb 2026 00:54:33 +0000 (21:54 -0300)
src/kernel/main.c
src/kernel/utils.c
src/mm/heap.c

index e53b2935db84fc9b404d5d18d488d922dc4099fe..ee61184e9ace41e2a51407792a3628914a26882c 100644 (file)
@@ -31,7 +31,7 @@
 
 /* Check if the compiler thinks we are targeting the wrong operating system. */
 #if defined(__linux__)
-#error "You are not using a cross-compiler, you will run into trouble"
+#warning "You are not using a cross-compiler, you may run into trouble"
 #endif
 
 /*
index 26c1f43fbbcf7fda34b8cb911e3da342c31f49a9..d8fcee2fcd9058933d6d01aedb211829174fc829 100644 (file)
@@ -116,12 +116,6 @@ int atoi(const char* str) {
     return sign * res;
 }
 
-char* strcpy(char* dest, const char* src) {
-    char* temp = dest;
-    while ((*dest++ = *src++));
-    return temp;
-}
-
 void itoa_hex(uint32_t num, char* str) {
     const char hex_chars[] = "0123456789ABCDEF";
     str[0] = '0';
index 60f9c9a89e3d595bbd581ff260e93511c3949162..af4a210caf4cf289b8de74b50ca1906812b40155 100644 (file)
@@ -10,6 +10,7 @@
 #include "heap.h"
 #include "uart_console.h"
 #include "pmm.h"
+#include "vmm.h"
 #include "spinlock.h"
 #include "hal/cpu.h"
 #include <stddef.h>