MemoryState.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System;
  2. namespace Ryujinx.HLE.HOS.Kernel.Memory
  3. {
  4. [Flags]
  5. enum MemoryState : uint
  6. {
  7. Unmapped = 0x00000000,
  8. Io = 0x00002001,
  9. Normal = 0x00042002,
  10. CodeStatic = 0x00DC7E03,
  11. CodeMutable = 0x03FEBD04,
  12. Heap = 0x037EBD05,
  13. SharedMemory = 0x00402006,
  14. ModCodeStatic = 0x00DD7E08,
  15. ModCodeMutable = 0x03FFBD09,
  16. IpcBuffer0 = 0x005C3C0A,
  17. Stack = 0x005C3C0B,
  18. ThreadLocal = 0x0040200C,
  19. TransferMemoryIsolated = 0x015C3C0D,
  20. TransferMemory = 0x005C380E,
  21. ProcessMemory = 0x0040380F,
  22. Reserved = 0x00000010,
  23. IpcBuffer1 = 0x005C3811,
  24. IpcBuffer3 = 0x004C2812,
  25. KernelStack = 0x00002013,
  26. CodeReadOnly = 0x00402214,
  27. CodeWritable = 0x00402015,
  28. UserMask = 0xff,
  29. Mask = 0xffffffff,
  30. PermissionChangeAllowed = 1 << 8,
  31. ForceReadWritableByDebugSyscalls = 1 << 9,
  32. IpcSendAllowedType0 = 1 << 10,
  33. IpcSendAllowedType3 = 1 << 11,
  34. IpcSendAllowedType1 = 1 << 12,
  35. ProcessPermissionChangeAllowed = 1 << 14,
  36. MapAllowed = 1 << 15,
  37. UnmapProcessCodeMemoryAllowed = 1 << 16,
  38. TransferMemoryAllowed = 1 << 17,
  39. QueryPhysicalAddressAllowed = 1 << 18,
  40. MapDeviceAllowed = 1 << 19,
  41. MapDeviceAlignedAllowed = 1 << 20,
  42. IpcBufferAllowed = 1 << 21,
  43. IsPoolAllocated = 1 << 22,
  44. MapProcessAllowed = 1 << 23,
  45. AttributeChangeAllowed = 1 << 24,
  46. CodeMemoryAllowed = 1 << 25
  47. }
  48. }