mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-08 18:38:36 +00:00
20ce37dee6
* Start refactoring kernel a bit and import some changes from kernel decoupling PR * kernel: Put output always at the start in Syscall functions * kernel: Rewrite GetThreadContext3 to use a structure and to be accurate * kernel: make KernelTransfer use generic types and simplify * Fix some warning and do not use getters on MemoryInfo * Address gdkchan's comment * GetThreadContext3: use correct pause flag
37 lines
1,000 B
C#
37 lines
1,000 B
C#
using Ryujinx.HLE.HOS.Kernel.Memory;
|
|
|
|
namespace Ryujinx.HLE.HOS.Kernel.SupervisorCall
|
|
{
|
|
struct MemoryInfo
|
|
{
|
|
public ulong Address;
|
|
public ulong Size;
|
|
public MemoryState State;
|
|
public MemoryAttribute Attribute;
|
|
public KMemoryPermission Permission;
|
|
public int IpcRefCount;
|
|
public int DeviceRefCount;
|
|
#pragma warning disable CS0414
|
|
private int _padding;
|
|
#pragma warning restore CS0414
|
|
|
|
public MemoryInfo(
|
|
ulong address,
|
|
ulong size,
|
|
MemoryState state,
|
|
MemoryAttribute attribute,
|
|
KMemoryPermission permission,
|
|
int ipcRefCount,
|
|
int deviceRefCount)
|
|
{
|
|
Address = address;
|
|
Size = size;
|
|
State = state;
|
|
Attribute = attribute;
|
|
Permission = permission;
|
|
IpcRefCount = ipcRefCount;
|
|
DeviceRefCount = deviceRefCount;
|
|
_padding = 0;
|
|
}
|
|
}
|
|
} |