aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Kernel/Memory/MemoryPermission.cs
blob: 563b817d86cb4fde930d4790230bfdedae926ece (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System;

namespace Ryujinx.HLE.HOS.Kernel.Memory
{
    [Flags]
    enum KMemoryPermission : uint
    {
        None     = 0,
        UserMask = Read | Write | Execute,
        Mask     = uint.MaxValue,

        Read     = 1 << 0,
        Write    = 1 << 1,
        Execute  = 1 << 2,
        DontCare = 1 << 28,

        ReadAndWrite   = Read | Write,
        ReadAndExecute = Read | Execute
    }
}