Hi.
To display text on the screen, I use
Scalable Screen Font, it needs a memory manager.
I wrote code that outputs text, in qemu it works as it should and outputs everything. But when trying to run the kernel in Virtual Box, the library reported errors in my memory Manager. Later, I noticed that in virtual box the test machine has 5120 MB of RAM, so I lowered this number to 1024 and everything worked fine.
I thought I found an error, I thought that when working with more than 4 GB of RAM in the memory Manager there is a problem.
Then I put 4100 MB to test my guess, but everything worked.
Experimentally, I found out that if I put 4132 MB or higher I get a problem. At 4131 MB, everything works well.
I did not apply the source code of the memory Manager because the comments are not written in English(I will translate them later). But if someone wants to look at them, you can find them all
here.
What could be the reason for this problem?
Thanks.