diff options
author | itsmeft24 <rishabh.tumminkatti@gmail.com> | 2021-12-05 21:04:08 +0100 |
---|---|---|
committer | itsmeft24 <rishabh.tumminkatti@gmail.com> | 2021-12-05 21:04:08 +0100 |
commit | 8aef8f39d86affd8fcc9a812d3d597f8eaee90b8 (patch) | |
tree | c0249fef800fad1f0ad0b027b85a1801ac41e294 /src/core/hle/kernel/k_memory_block.h | |
parent | Merge pull request #7494 from Morph1984/no-time-to-wait (diff) | |
download | yuzu-8aef8f39d86affd8fcc9a812d3d597f8eaee90b8.tar yuzu-8aef8f39d86affd8fcc9a812d3d597f8eaee90b8.tar.gz yuzu-8aef8f39d86affd8fcc9a812d3d597f8eaee90b8.tar.bz2 yuzu-8aef8f39d86affd8fcc9a812d3d597f8eaee90b8.tar.lz yuzu-8aef8f39d86affd8fcc9a812d3d597f8eaee90b8.tar.xz yuzu-8aef8f39d86affd8fcc9a812d3d597f8eaee90b8.tar.zst yuzu-8aef8f39d86affd8fcc9a812d3d597f8eaee90b8.zip |
Diffstat (limited to 'src/core/hle/kernel/k_memory_block.h')
-rw-r--r-- | src/core/hle/kernel/k_memory_block.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_memory_block.h b/src/core/hle/kernel/k_memory_block.h index a7fdb5fb8..fd491146f 100644 --- a/src/core/hle/kernel/k_memory_block.h +++ b/src/core/hle/kernel/k_memory_block.h @@ -131,6 +131,26 @@ enum class KMemoryPermission : u8 { UserMask = static_cast<u8>(Svc::MemoryPermission::Read | Svc::MemoryPermission::Write | Svc::MemoryPermission::Execute), + + KernelShift = 3, + + KernelRead = Read << KernelShift, + KernelWrite = Write << KernelShift, + KernelExecute = Execute << KernelShift, + + NotMapped = (1 << (2 * KernelShift)), + + KernelReadWrite = KernelRead | KernelWrite, + KernelReadExecute = KernelRead | KernelExecute, + + UserRead = Read | KernelRead, + UserWrite = Write | KernelWrite, + UserExecute = Execute, + + UserReadWrite = UserRead | UserWrite, + UserReadExecute = UserRead | UserExecute, + + IpcLockChangeMask = NotMapped | UserReadWrite }; DECLARE_ENUM_FLAG_OPERATORS(KMemoryPermission); |