diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-02-27 20:45:07 -0300 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-02-27 20:45:07 -0300 |
| commit | f876bd2a805805d9e5dc350b65e8d02fbc5b88b5 (patch) | |
| tree | 7a3af73448166b628526028cb35d09cc8a010eac /ChocolArm64/Memory/AMemoryAlloc.cs | |
| parent | 708761963e09ceb4619f8f21fffc7af051a8f020 (diff) | |
Change SvcGetInfo 5 to return actual heap size, remove AMemoryAlloc since it is no longer needed with direct memory access, move some memory management logic out of AMemoryMgr, change default virtual filesystem path to AppData
Diffstat (limited to 'ChocolArm64/Memory/AMemoryAlloc.cs')
| -rw-r--r-- | ChocolArm64/Memory/AMemoryAlloc.cs | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/ChocolArm64/Memory/AMemoryAlloc.cs b/ChocolArm64/Memory/AMemoryAlloc.cs deleted file mode 100644 index b11e7793..00000000 --- a/ChocolArm64/Memory/AMemoryAlloc.cs +++ /dev/null @@ -1,35 +0,0 @@ -using ChocolArm64.Exceptions; - -namespace ChocolArm64.Memory -{ - public class AMemoryAlloc - { - private long PhysPos; - - public long Alloc(long Size) - { - long Position = PhysPos; - - Size = AMemoryHelper.PageRoundUp(Size); - - PhysPos += Size; - - if (PhysPos > AMemoryMgr.RamSize || PhysPos < 0) - { - throw new VmmOutOfMemoryException(Size); - } - - return Position; - } - - public void Free(long Position) - { - //TODO - } - - public long GetFreeMem() - { - return AMemoryMgr.RamSize - PhysPos; - } - } -}
\ No newline at end of file |
