Initialize the PageAllocator as part of the memory subsystem
Almost there!
This commit is contained in:
parent
65513588f8
commit
cf2a6c7f3c
2 changed files with 4 additions and 3 deletions
|
@ -37,8 +37,7 @@ MemoryManager::initialize(const StartupInformation& startupInformation)
|
|||
|
||||
initializeGDT();
|
||||
mFrameAllocator.initialize(startupInformation);
|
||||
|
||||
void* page = mFrameAllocator.allocate();
|
||||
mPageAllocator.initialize(startupInformation, &mFrameAllocator);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include "Descriptors.hh"
|
||||
#include "StartupInformation.hh"
|
||||
#include "memory/FrameAllocator.hh"
|
||||
#include "memory/PageAllocator.hh"
|
||||
|
||||
|
||||
namespace kernel {
|
||||
|
@ -25,7 +26,8 @@ struct MemoryManager
|
|||
|
||||
private:
|
||||
x86::GDT mGDT;
|
||||
kernel::FrameAllocator mFrameAllocator;
|
||||
FrameAllocator mFrameAllocator;
|
||||
PageAllocator mPageAllocator;
|
||||
|
||||
void initializeGDT();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue