aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory/multiboot.cpp
blob: b0432a9be0f845ebb5a6a5b28ab35f51fdf3b9a6 (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> b) const -> bool { return (flags & b) == b; }

  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