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