mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-15 19:41:16 +01:00
c94d47cc40
* kernel: Implement SetMemoryPermission syscall This commit implement the SetMemoryPermission syscall accurately. This also fix KMemoryPermission not being an unsigned 32 bits type and add the "DontCare" bit (used by shared memory, currently unused in Ryujinx) * Update MemoryPermission mask * Address gdkchan's comments * Fix a nit * Address gdkchan's comment
19 lines
354 B
C#
19 lines
354 B
C#
using System;
|
|
|
|
namespace Ryujinx.HLE.HOS.Kernel.Memory
|
|
{
|
|
[Flags]
|
|
enum KMemoryPermission : uint
|
|
{
|
|
None = 0,
|
|
Mask = uint.MaxValue,
|
|
|
|
Read = 1 << 0,
|
|
Write = 1 << 1,
|
|
Execute = 1 << 2,
|
|
DontCare = 1 << 28,
|
|
|
|
ReadAndWrite = Read | Write,
|
|
ReadAndExecute = Read | Execute
|
|
}
|
|
} |