aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory/multiboot.cpp
blob: 8c6793e0479e25e6ce4420f86e22033f0b5a8876 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "arch/memory/multiboot.hpp"

namespace teachos::arch::memory
{
  auto elf_section_flags::contains_flags(std::bitset<64U> other) const -> bool { return (flags & other) == other; }

  auto elf_section_header::is_null() const -> bool
  {
    return name_table_index == 0U && type == elf_section_type::INACTIVE && flags == elf_section_flags(0U) &&
           virtual_address == 0U && file_offset == 0U && additional_information == 0U && address_alignment == 0U &&
           fixed_table_entry_size == 0U;
  }
}  // namespace teachos::arch::memory