14#ifndef INC_PROCESS_SCHEDULER_H
27 if (!this->HeapTree) {
28 kout <<
"USER_PROCESS: Heap is empty.\r";
34 while (entry !=
nullptr) {
35 if (entry->Entry == ptr.Leak().Leak()) {
36 this->UsedMemory -= entry->EntrySize;
39 auto page_dir = hal_read_cr3();
41 hal_write_cr3(this->VMRegister);
43 hal_write_cr3(page_dir);
54 kout <<
"USER_PROCESS: Trying to free a pointer which doesn't exist.\r";
#define kout
Definition DebugOutput.h:189
User Process Scheduler header file.
ErrorOr class for error handling.
Definition ErrorOr.h:22
UPS inline definitions.
Definition Device.h:12
constexpr KPCError kErrorSuccess
Definition KPC.h:32
Int32 mm_free_ptr(VoidPtr heap_ptr)
Declare pointer as free.
Definition HeapMgr.cc:187
Definition CoreProcessScheduler.h:52