0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-12-29 02:05:44 +00:00
ryujinx-fork/Ryujinx.Core/OsHle/MemoryInfo.cs

28 lines
734 B
C#
Raw Normal View History

2018-02-04 23:08:20 +00:00
using ChocolArm64.Memory;
namespace Ryujinx.Core.OsHle
2018-02-04 23:08:20 +00:00
{
struct MemoryInfo
{
public long BaseAddress;
public long Size;
public int MemType;
public int MemAttr;
public int MemPerm;
public int IpcRefCount;
public int DeviceRefCount;
public int Padding; //SBZ
public MemoryInfo(AMemoryMapInfo MapInfo)
{
BaseAddress = MapInfo.Position;
Size = MapInfo.Size;
MemType = MapInfo.Type;
2018-02-10 00:13:18 +00:00
MemAttr = MapInfo.Attr;
2018-02-04 23:08:20 +00:00
MemPerm = (int)MapInfo.Perm;
IpcRefCount = 0;
DeviceRefCount = 0;
Padding = 0;
}
}
}