kernel: A bit of refactoring and fix GetThreadContext3 correctness (#3042)
* 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
This commit is contained in:
parent
c52158b733
commit
20ce37dee6
17 changed files with 386 additions and 321 deletions
|
@ -2682,7 +2682,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Memory
|
|||
return Context.MemoryManager.MemoryRegions[(int)_memRegion];
|
||||
}
|
||||
|
||||
public long GetMmUsedPages()
|
||||
public ulong GetMmUsedPages()
|
||||
{
|
||||
lock (_blockManager)
|
||||
{
|
||||
|
@ -2690,9 +2690,9 @@ namespace Ryujinx.HLE.HOS.Kernel.Memory
|
|||
}
|
||||
}
|
||||
|
||||
private long GetMmUsedSize()
|
||||
private ulong GetMmUsedSize()
|
||||
{
|
||||
return _blockManager.BlocksCount * KMemoryBlockSize;
|
||||
return (ulong)(_blockManager.BlocksCount * KMemoryBlockSize);
|
||||
}
|
||||
|
||||
public bool IsInvalidRegion(ulong address, ulong size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue