page_manager and memory_manager are now separate, and are also pre allocated in the kernel so they don't have to allocate themselves.
12 lines
241 B
C++
12 lines
241 B
C++
#include "assert.h"
|
|
#include "console.h"
|
|
#include "memory.h"
|
|
#include "memory_pages.h"
|
|
|
|
memory_manager g_memory_manager;
|
|
|
|
memory_manager::memory_manager()
|
|
{
|
|
kassert(this == &g_memory_manager, "Attempt to create another memory_manager.");
|
|
}
|