Add: exec feature for binaries

This commit is contained in:
xamidev
2024-09-23 15:46:58 +02:00
parent 5ad32d3ee1
commit 1fa4b5c70a
8 changed files with 38 additions and 16 deletions

View File

@@ -120,17 +120,6 @@ void kmain(multiboot2_info *mb_info)
// 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("[debug] Failed to load test program!\n");
} else {
printf("[debug] Test program loaded!\n");
}
void (*program_entry)() = (void (*)())binary_file;
program_entry();
timer_install();
keyboard_install();
printf("[kernel] spawning shell...\n");