fixing minor bugs with single unit compilation in gcc with flags on

This commit is contained in:
2025-05-16 01:08:12 -07:00
parent 50efcc13fe
commit 49361a98be
19 changed files with 109 additions and 12 deletions

9
kernel/types.c Normal file
View File

@@ -0,0 +1,9 @@
#include "types.h"
// Example: Basic memory helper (unnecessary if libc exists)
void *memset(void *dest, int value, size_t len) {
unsigned char *ptr = (unsigned char *)dest;
while (len-- > 0)
*ptr++ = (unsigned char)value;
return dest;
}