aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kernel/main.cpp
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-06 13:40:24 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-06 13:40:24 +0000
commit78153377d8a964d6b7290d966e5c1d30369abc2c (patch)
treeee7c4ba6103e75c832a61eb064203ade7ae574de /arch/x86_64/src/kernel/main.cpp
parent951b314b655781dc59aee24cf952d03bf3b3ee83 (diff)
downloadteachos-78153377d8a964d6b7290d966e5c1d30369abc2c.tar.xz
teachos-78153377d8a964d6b7290d966e5c1d30369abc2c.zip
Improve naming
Diffstat (limited to 'arch/x86_64/src/kernel/main.cpp')
-rw-r--r--arch/x86_64/src/kernel/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/src/kernel/main.cpp b/arch/x86_64/src/kernel/main.cpp
index 481264c..636ddf2 100644
--- a/arch/x86_64/src/kernel/main.cpp
+++ b/arch/x86_64/src/kernel/main.cpp
@@ -40,12 +40,12 @@ namespace teachos::arch::kernel
auto print_elf_sections(arch::memory::elf_symbols_section * symbol) -> void
{
- auto expected_entry_size = symbol->entsize;
+ auto expected_entry_size = symbol->entry_size;
constexpr auto actual_entry_size = sizeof(arch::memory::elf_section_header);
assert(expected_entry_size == actual_entry_size);
auto begin = &symbol->sections;
- auto end = begin + symbol->num;
+ auto end = begin + symbol->number_of_sections;
for (auto section = begin; section != end; ++section)
{
video::vga::text::write("Looping Code section", video::vga::text::common_attributes::green_on_black);