Skip to content

Commit

Permalink
Merge pull request CosmosOS#2167 from CosmosOS/MemStartUpFix
Browse files Browse the repository at this point in the history
Dont clear all memory on boot, lets do that on demand when we allocate
  • Loading branch information
KM198912 authored Mar 20, 2022
2 parents 39d5c7c + ba7012e commit 369b704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Cosmos.Core/Memory/RAT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ static public class PageType
/// </exception>
public static void Init(byte* aStartPtr, uint aSize)
{
CPU.ZeroFill((uint)aStartPtr, aSize);
if ((uint)aStartPtr % PageSize != 0 && !Debug)
{
Debugger.DoSendNumber(((uint)aStartPtr % PageSize));
Expand Down Expand Up @@ -242,6 +241,7 @@ public static uint GetPageCount(byte aType = 0)
{
*p = PageType.Extension;
}
CPU.ZeroFill((uint)xResult, PageSize * aPageCount);
return xResult;
}
return null;
Expand Down

0 comments on commit 369b704

Please sign in to comment.