loading initrd now...

This commit is contained in:
2026-06-30 00:03:21 -05:00
parent 5983212da0
commit ce81d4eb31
8 changed files with 247 additions and 17 deletions

View File

@@ -58,6 +58,14 @@ int strncmp(const char *s1, const char *s2, size_t n) {
return 0;
}
char* strcpy(char* dest, const char* src) {
char* saved_dest = dest;
while ((*dest++ = *src++) != '\0') {}
return saved_dest;
}
static void* kernel_heap_start = (void*)KHEAP_START;
static void* kernel_heap_end = (void*)KHEAP_START;
alloc_header_t* blk_list = NULL;

View File

@@ -10,6 +10,7 @@ void memset(const uint8_t* dst, uint8_t val, size_t sz);
int strcmp(const char *s1, const char *s2);
int strncmp(const char *s1, const char *s2, size_t n);
int strlen(const char* str);
char* strcpy(char* dest, const char* src);
void kgrow(size_t pages);
void* kalloc(size_t sz);