|
|
@ -6,15 +6,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
namespace Core {
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef ANDROID
|
|
|
|
#ifdef ARCHITECTURE_arm64
|
|
|
|
constexpr size_t VirtualReserveSize = 1ULL << 38;
|
|
|
|
constexpr size_t VirtualReserveSize = 1ULL << 38;
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
constexpr size_t VirtualReserveSize = 1ULL << 39;
|
|
|
|
constexpr size_t VirtualReserveSize = 1ULL << 39;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
DeviceMemory::DeviceMemory()
|
|
|
|
DeviceMemory::DeviceMemory(bool direct_mapped_address)
|
|
|
|
: buffer{Kernel::Board::Nintendo::Nx::KSystemControl::Init::GetIntendedMemorySize(),
|
|
|
|
: buffer{Kernel::Board::Nintendo::Nx::KSystemControl::Init::GetIntendedMemorySize(),
|
|
|
|
VirtualReserveSize} {}
|
|
|
|
VirtualReserveSize} {
|
|
|
|
|
|
|
|
if (direct_mapped_address) {
|
|
|
|
|
|
|
|
buffer.EnableDirectMappedAddress();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
DeviceMemory::~DeviceMemory() = default;
|
|
|
|
DeviceMemory::~DeviceMemory() = default;
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace Core
|
|
|
|
} // namespace Core
|
|
|
|