2020-11-16 10:39:05 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-11-16 10:39:05 -03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "Region.h"
|
|
|
|
|
#include "Emulator.h"
|
|
|
|
|
|
|
|
|
|
namespace UserspaceEmulator {
|
|
|
|
|
|
2021-03-09 11:17:15 -03:00
|
|
|
Region::Region(u32 base, u32 size, bool mmap)
|
2020-11-16 10:39:05 -03:00
|
|
|
: m_emulator(Emulator::the())
|
2021-02-06 19:08:51 -03:00
|
|
|
, m_range(Range { VirtualAddress { base }, size })
|
2021-03-09 11:17:15 -03:00
|
|
|
, m_mmap(mmap)
|
2020-11-16 10:39:05 -03:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|