fix (ELF): removed temporary 'g_kernel_executable'
This commit is contained in:
parent
a92f9cfa8e
commit
24693baa1d
|
@ -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
|
||||||
|
|
|
@ -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' ||
|
||||||
|
|
Loading…
Reference in New Issue