MemoryInfo.cs 734 B

12345678910111213141516171819202122232425262728
  1. using ChocolArm64.Memory;
  2. namespace Ryujinx.Core.OsHle
  3. {
  4. struct MemoryInfo
  5. {
  6. public long BaseAddress;
  7. public long Size;
  8. public int MemType;
  9. public int MemAttr;
  10. public int MemPerm;
  11. public int IpcRefCount;
  12. public int DeviceRefCount;
  13. public int Padding; //SBZ
  14. public MemoryInfo(AMemoryMapInfo MapInfo)
  15. {
  16. BaseAddress = MapInfo.Position;
  17. Size = MapInfo.Size;
  18. MemType = MapInfo.Type;
  19. MemAttr = MapInfo.Attr;
  20. MemPerm = (int)MapInfo.Perm;
  21. IpcRefCount = 0;
  22. DeviceRefCount = 0;
  23. Padding = 0;
  24. }
  25. }
  26. }