From 24693baa1dd16280a5d7c822c795c4f12755c5ba Mon Sep 17 00:00:00 2001 From: antifallobst Date: Sat, 4 Mar 2023 16:34:30 +0100 Subject: [PATCH] fix (ELF): removed temporary 'g_kernel_executable' --- kernel/inc/drivers/elf/elf.h | 5 ----- kernel/src/drivers/elf/elf.c | 10 ---------- 2 files changed, 15 deletions(-) diff --git a/kernel/inc/drivers/elf/elf.h b/kernel/inc/drivers/elf/elf.h index d82f161..3d9dd53 100644 --- a/kernel/inc/drivers/elf/elf.h +++ b/kernel/inc/drivers/elf/elf.h @@ -49,9 +49,4 @@ typedef struct { elf_executable_T* elf_executable_create (uint8_t* buffer); void elf_executable_destruct (elf_executable_T* executable); -// the following stuff is temporary and should be replaced when processes are implemented -#include "boot/boot_info.h" -void elf_init_kernel_exec(boot_info_T* boot_info); -extern elf_executable_T* g_kernel_executable; - #endif //NOX_ELF_H diff --git a/kernel/src/drivers/elf/elf.c b/kernel/src/drivers/elf/elf.c index dc33765..e267450 100644 --- a/kernel/src/drivers/elf/elf.c +++ b/kernel/src/drivers/elf/elf.c @@ -28,16 +28,6 @@ #include "utils/logger.h" #include "utils/math.h" -// TEMPORARY BLOCK BEGIN - -elf_executable_T* g_kernel_executable; - -void elf_init_kernel_exec(boot_info_T* boot_info) { - g_kernel_executable = elf_executable_create(boot_info->kernel_file->address); -} - -// TEMPORARY BLOCK END - bool elf_executable_validate(elf_executable_T* executable) { if (executable->header.identity[0] != 0x7F || executable->header.identity[1] != 'E' ||