feat: gdt, attributes move, reorder
Added late gdt setup with initial tss Moved attributes to include root Reordered some imports
This commit is contained in:
@@ -4,11 +4,12 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <elf.h>
|
||||
|
||||
#define DEBUG_INIT
|
||||
|
||||
#include <myke/debug/debug.h>
|
||||
#include <elf.h>
|
||||
#include <myke/libk/libk.h>
|
||||
#include <myke/libk/kprint.h>
|
||||
|
||||
@@ -73,7 +74,8 @@ void debug_store_info(struct multiboot_info *info) {
|
||||
if (sizeof(struct elf32_section_header) != info->u.elf_sec.size) {
|
||||
k_panics("ELF size not correct");
|
||||
}
|
||||
elf_headers = (struct elf32_section_header *) info->u.elf_sec.addr;
|
||||
elf_headers = calloc(info->u.elf_sec.num, sizeof(struct elf32_section_header));
|
||||
memcpy(elf_headers, (const void *) info->u.elf_sec.addr, sizeof(struct elf32_section_header) * info->u.elf_sec.num);
|
||||
elf_header_cnt = info->u.elf_sec.num;
|
||||
debug_find_sections(info->u.elf_sec.shndx);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user