mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-10 23:09:18 +00:00
Implement Virtual Terminal and fix /dev/kcon
This commit is contained in:
@ -78,14 +78,14 @@ void StressKernel()
|
||||
Tasking::PCB *pcb = nullptr;
|
||||
if (TO_MiB(KernelAllocator.GetFreeMemory()) < 20)
|
||||
{
|
||||
KPrint("\eE85230Not enough memory left!");
|
||||
KPrint("\x1b[1;31;41mNot enough memory left!");
|
||||
goto End;
|
||||
}
|
||||
|
||||
ptr = KernelAllocator.RequestPages(TO_PAGES(chunk));
|
||||
if (ptr == nullptr)
|
||||
{
|
||||
KPrint("\eE85230Failed to allocate memory!");
|
||||
KPrint("\x1b[1;31;41mFailed to allocate memory!");
|
||||
KPrint("Score is: %d MiB (current is %d MiB)",
|
||||
TO_MiB(highestScore.load()), TO_MiB(totalAllocated.load()));
|
||||
continue;
|
||||
|
@ -123,8 +123,9 @@ void TaskMgr()
|
||||
}
|
||||
|
||||
uint32_t tmpX, tmpY;
|
||||
Display->GetBufferCursor(&tmpX, &tmpY);
|
||||
Display->SetBufferCursor(0, 0);
|
||||
fixme("cursor 127-128; 179");
|
||||
// Display->GetBufferCursor(&tmpX, &tmpY);
|
||||
// Display->SetBufferCursor(0, 0);
|
||||
printf("\eF02C21Task Manager\n");
|
||||
static uint64_t OldSystemTime = 0;
|
||||
foreach (auto Proc in TaskManager->GetProcessList())
|
||||
@ -175,7 +176,7 @@ void TaskMgr()
|
||||
#endif
|
||||
if (sanity > 1000)
|
||||
sanity = 0;
|
||||
Display->SetBufferCursor(tmpX, tmpY);
|
||||
// Display->SetBufferCursor(tmpX, tmpY);
|
||||
if (!Config.Quiet)
|
||||
Display->UpdateBuffer();
|
||||
|
||||
|
Reference in New Issue
Block a user