diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2024-04-06 13:51:44 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-06 13:51:44 -0300 |
| commit | 12b235700cf104163bf8030df0feb6357a40f9d3 (patch) | |
| tree | 9a3882a69debf74c450b86056a40b427f401580b /src/Ryujinx.HLE/HOS/Kernel/Memory/KSharedMemory.cs | |
| parent | 3be616207df437695208ceaec9b255db18768610 (diff) | |
Delete old 16KB page workarounds (#6584)
* Delete old 16KB page workarounds
* Rename Supports4KBPage to UsesPrivateAllocations
* Format whitespace
* This one should be false too
* Update XML doc
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Kernel/Memory/KSharedMemory.cs')
| -rw-r--r-- | src/Ryujinx.HLE/HOS/Kernel/Memory/KSharedMemory.cs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/Ryujinx.HLE/HOS/Kernel/Memory/KSharedMemory.cs b/src/Ryujinx.HLE/HOS/Kernel/Memory/KSharedMemory.cs index e302ee44..e593a7e1 100644 --- a/src/Ryujinx.HLE/HOS/Kernel/Memory/KSharedMemory.cs +++ b/src/Ryujinx.HLE/HOS/Kernel/Memory/KSharedMemory.cs @@ -2,7 +2,6 @@ using Ryujinx.Common; using Ryujinx.HLE.HOS.Kernel.Common; using Ryujinx.HLE.HOS.Kernel.Process; using Ryujinx.Horizon.Common; -using Ryujinx.Memory; namespace Ryujinx.HLE.HOS.Kernel.Memory { @@ -49,17 +48,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Memory return KernelResult.InvalidPermission; } - // On platforms with page size > 4 KB, this can fail due to the address not being page aligned, - // we can return an error to force the application to retry with a different address. - - try - { - return memoryManager.MapPages(address, _pageList, MemoryState.SharedMemory, permission); - } - catch (InvalidMemoryRegionException) - { - return KernelResult.InvalidMemState; - } + return memoryManager.MapPages(address, _pageList, MemoryState.SharedMemory, permission); } public Result UnmapFromProcess(KPageTableBase memoryManager, ulong address, ulong size, KProcess process) |
