ProcessCreationFlags.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. namespace Ryujinx.HLE.HOS.Kernel.Process
  3. {
  4. [Flags]
  5. enum ProcessCreationFlags
  6. {
  7. Is64Bit = 1 << 0,
  8. AddressSpaceShift = 1,
  9. AddressSpace32Bit = 0 << AddressSpaceShift,
  10. AddressSpace64BitDeprecated = 1 << AddressSpaceShift,
  11. AddressSpace32BitWithoutAlias = 2 << AddressSpaceShift,
  12. AddressSpace64Bit = 3 << AddressSpaceShift,
  13. AddressSpaceMask = 7 << AddressSpaceShift,
  14. EnableDebug = 1 << 4,
  15. EnableAslr = 1 << 5,
  16. IsApplication = 1 << 6,
  17. DeprecatedUseSecureMemory = 1 << 7,
  18. PoolPartitionShift = 7,
  19. PoolPartitionApplication = 0 << PoolPartitionShift,
  20. PoolPartitionApplet = 1 << PoolPartitionShift,
  21. PoolPartitionSystem = 2 << PoolPartitionShift,
  22. PoolPartitionSystemNonSecure = 3 << PoolPartitionShift,
  23. PoolPartitionMask = 0xf << PoolPartitionShift,
  24. OptimizeMemoryAllocation = 1 << 11,
  25. All =
  26. Is64Bit |
  27. AddressSpaceMask |
  28. EnableDebug |
  29. EnableAslr |
  30. IsApplication |
  31. DeprecatedUseSecureMemory |
  32. PoolPartitionMask |
  33. OptimizeMemoryAllocation
  34. }
  35. }