diff options
author | Lioncash <mathew1800@gmail.com> | 2018-10-14 20:44:38 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-10-15 02:11:16 +0200 |
commit | 90f8474fc183387f6d2daa437dcba4f88ced9b33 (patch) | |
tree | d8cc0787a00bbbd2ce2d40a18971a29fc610cc4d /src/core/hle/kernel/svc.cpp | |
parent | Merge pull request #1492 from lioncash/proc (diff) | |
download | yuzu-90f8474fc183387f6d2daa437dcba4f88ced9b33.tar yuzu-90f8474fc183387f6d2daa437dcba4f88ced9b33.tar.gz yuzu-90f8474fc183387f6d2daa437dcba4f88ced9b33.tar.bz2 yuzu-90f8474fc183387f6d2daa437dcba4f88ced9b33.tar.lz yuzu-90f8474fc183387f6d2daa437dcba4f88ced9b33.tar.xz yuzu-90f8474fc183387f6d2daa437dcba4f88ced9b33.tar.zst yuzu-90f8474fc183387f6d2daa437dcba4f88ced9b33.zip |
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r-- | src/core/hle/kernel/svc.cpp | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 7a053da1e..3fd082550 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -448,25 +448,12 @@ static ResultCode GetInfo(u64* result, u64 info_id, u64 handle, u64 info_sub_id) case GetInfoType::RandomEntropy: *result = 0; break; - case GetInfoType::AddressSpaceBaseAddr: - *result = vm_manager.GetCodeRegionBaseAddress(); + case GetInfoType::ASLRRegionBaseAddr: + *result = vm_manager.GetASLRRegionBaseAddress(); break; - case GetInfoType::AddressSpaceSize: { - const u64 width = vm_manager.GetAddressSpaceWidth(); - - switch (width) { - case 32: - *result = 0xFFE00000; - break; - case 36: - *result = 0xFF8000000; - break; - case 39: - *result = 0x7FF8000000; - break; - } + case GetInfoType::ASLRRegionSize: + *result = vm_manager.GetASLRRegionSize(); break; - } case GetInfoType::NewMapRegionBaseAddr: *result = vm_manager.GetNewMapRegionBaseAddress(); break; |