device_memory: Enable direct mapped addresses for nce
This commit is contained in:
parent
2e02efbdd0
commit
4838837620
5 changed files with 21 additions and 8 deletions
|
@ -6,15 +6,20 @@
|
|||
|
||||
namespace Core {
|
||||
|
||||
#ifdef ANDROID
|
||||
#ifdef ARCHITECTURE_arm64
|
||||
constexpr size_t VirtualReserveSize = 1ULL << 38;
|
||||
#else
|
||||
constexpr size_t VirtualReserveSize = 1ULL << 39;
|
||||
#endif
|
||||
|
||||
DeviceMemory::DeviceMemory()
|
||||
DeviceMemory::DeviceMemory(bool direct_mapped_address)
|
||||
: buffer{Kernel::Board::Nintendo::Nx::KSystemControl::Init::GetIntendedMemorySize(),
|
||||
VirtualReserveSize} {}
|
||||
VirtualReserveSize} {
|
||||
if (direct_mapped_address) {
|
||||
buffer.EnableDirectMappedAddress();
|
||||
}
|
||||
}
|
||||
|
||||
DeviceMemory::~DeviceMemory() = default;
|
||||
|
||||
} // namespace Core
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue