Add a display server and graphical user interface #38

Merged
apio merged 103 commits from display-server into main 2023-09-20 18:49:21 +00:00
Showing only changes of commit b42497e05e - Show all commits

View File

@ -157,6 +157,13 @@ namespace MemoryManager
used_mem += ARCH_PAGE_SIZE;
free_mem -= ARCH_PAGE_SIZE;
if (free_mem < 1024 * 1024)
{
// Less than 1 MiB of free memory! Let's start clearing caches...
kwarnln("Less than 1 MiB of free memory, clearing caches to try to gain extra memory");
Scheduler::signal_oom_thread();
}
return index * ARCH_PAGE_SIZE;
}