diff --git a/source/Cosmos.Core/Memory/RAT.cs b/source/Cosmos.Core/Memory/RAT.cs index e4c83f5106..c4aa1f276a 100644 --- a/source/Cosmos.Core/Memory/RAT.cs +++ b/source/Cosmos.Core/Memory/RAT.cs @@ -115,7 +115,6 @@ static public class PageType /// public static void Init(byte* aStartPtr, uint aSize) { - CPU.ZeroFill((uint)aStartPtr, aSize); if ((uint)aStartPtr % PageSize != 0 && !Debug) { Debugger.DoSendNumber(((uint)aStartPtr % PageSize)); @@ -242,6 +241,7 @@ public static uint GetPageCount(byte aType = 0) { *p = PageType.Extension; } + CPU.ZeroFill((uint)xResult, PageSize * aPageCount); return xResult; } return null;