fix (ELF): removed temporary 'g_kernel_executable'

This commit is contained in:
antifallobst 2023-03-04 16:34:30 +01:00
parent a92f9cfa8e
commit 24693baa1d
2 changed files with 0 additions and 15 deletions

View File

@ -49,9 +49,4 @@ typedef struct {
elf_executable_T* elf_executable_create (uint8_t* buffer); elf_executable_T* elf_executable_create (uint8_t* buffer);
void elf_executable_destruct (elf_executable_T* executable); 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 #endif //NOX_ELF_H

View File

@ -28,16 +28,6 @@
#include "utils/logger.h" #include "utils/logger.h"
#include "utils/math.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) { bool elf_executable_validate(elf_executable_T* executable) {
if (executable->header.identity[0] != 0x7F || if (executable->header.identity[0] != 0x7F ||
executable->header.identity[1] != 'E' || executable->header.identity[1] != 'E' ||