ProcessCreationFlags.cs 1.2 KB

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