Program loading, build system for apps, and badly-made lib linking.

This commit is contained in:
xamidev
2024-09-14 22:39:06 +02:00
parent 87bb1d96fd
commit 03b712ace0
8 changed files with 109 additions and 4 deletions

View File

@@ -118,6 +118,16 @@ void kmain(multiboot2_info *mb_info)
printf("[debug] malloc test ptr1=0x%x, ptr2=0x%x\n", (unsigned int)ptr1, (unsigned int)ptr2);
free(ptr1); free(ptr2);
// usually the place where i do testing
void* binary_file = load_file_from_initrd((uint8_t*)initrd_addr, "./hello.bin");
if (binary_file == NULL)
{
printf("NOT LOADED...\n");
} else {
printf("LOADED!\n");
}
timer_install();
keyboard_install();
printf("[kernel] spawning shell...\n");