Region.cpp 347 B

12345678910111213141516171819
  1. /*
  2. * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include "Region.h"
  7. #include "Emulator.h"
  8. namespace UserspaceEmulator {
  9. Region::Region(u32 base, u32 size, bool mmap)
  10. : m_emulator(Emulator::the())
  11. , m_range(Range { VirtualAddress { base }, size })
  12. , m_mmap(mmap)
  13. {
  14. }
  15. }