2018-08-15 18:59:51 +00:00
|
|
|
using System;
|
|
|
|
|
2018-12-18 05:33:36 +00:00
|
|
|
namespace Ryujinx.HLE.HOS.Kernel.Memory
|
2018-08-15 18:59:51 +00:00
|
|
|
{
|
|
|
|
[Flags]
|
2021-10-23 23:24:49 +00:00
|
|
|
enum KMemoryPermission : uint
|
2018-08-15 18:59:51 +00:00
|
|
|
{
|
2022-01-29 21:18:03 +00:00
|
|
|
None = 0,
|
|
|
|
UserMask = Read | Write | Execute,
|
|
|
|
Mask = uint.MaxValue,
|
2018-08-15 18:59:51 +00:00
|
|
|
|
2021-10-23 23:24:49 +00:00
|
|
|
Read = 1 << 0,
|
|
|
|
Write = 1 << 1,
|
|
|
|
Execute = 1 << 2,
|
|
|
|
DontCare = 1 << 28,
|
2018-08-15 18:59:51 +00:00
|
|
|
|
|
|
|
ReadAndWrite = Read | Write,
|
|
|
|
ReadAndExecute = Read | Execute
|
|
|
|
}
|
|
|
|
}
|