]> 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 aa54bd7b5b61191c73063bedd74ebd6ec66947ca..ebd101a99e4df602a0141bfb0f5d0a4b7b8693f6 100644 (file)
@@ -22,7 +22,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 a5b35ded92c8c966c3993946a11f85535c59ec01..63f6822d4672089cd09d57eaee4cff61ba17ea13 100644 (file)
@@ -107,12 +107,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 e1477160545caa52b65696716c0550b8d1237ef6..d958e9bf4e4cc01b42155045d68940fc356d0bb9 100644 (file)
@@ -1,6 +1,7 @@
 #include "heap.h"
 #include "uart_console.h"
 #include "pmm.h"
+#include "vmm.h"
 #include "spinlock.h"
 #include "hal/cpu.h"
 #include <stddef.h>