Update MemoryManager.cs
This commit is contained in:
parent
2b154b216a
commit
18240cef6c
1 changed files with 1 additions and 5 deletions
|
@ -9,8 +9,6 @@ namespace ARMeilleure.Memory
|
|||
{
|
||||
public unsafe class MemoryManager : IMemoryManager
|
||||
{
|
||||
public static long PTbl { get; private set; }
|
||||
|
||||
public const int PageBits = 12;
|
||||
public const int PageSize = 1 << PageBits;
|
||||
public const int PageMask = PageSize - 1;
|
||||
|
@ -67,8 +65,6 @@ namespace ARMeilleure.Memory
|
|||
PtLevelMask = PtLevelSize - 1;
|
||||
|
||||
_pageTable = Allocate((ulong)(PtLevelSize * IntPtr.Size));
|
||||
|
||||
PTbl = _pageTable.ToInt64();
|
||||
}
|
||||
|
||||
public void Map(long va, long pa, long size)
|
||||
|
@ -836,4 +832,4 @@ namespace ARMeilleure.Memory
|
|||
Free(ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue