2018-02-04 16:08:20 -07:00
|
|
|
using ChocolArm64.Memory;
|
|
|
|
|
2018-02-20 13:09:23 -07:00
|
|
|
namespace Ryujinx.Core.OsHle
|
2018-02-04 16:08:20 -07: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-09 17:13:18 -07:00
|
|
|
MemAttr = MapInfo.Attr;
|
2018-02-04 16:08:20 -07:00
|
|
|
MemPerm = (int)MapInfo.Perm;
|
|
|
|
IpcRefCount = 0;
|
|
|
|
DeviceRefCount = 0;
|
|
|
|
Padding = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|