Kernel: pass in MemorySystem

This commit is contained in:
Weiyi Wang 2018-11-20 22:48:19 -05:00
parent 6992f76acf
commit 8118be6615
6 changed files with 17 additions and 7 deletions

View file

@ -16,7 +16,7 @@
namespace Kernel {
/// Initialize the kernel
KernelSystem::KernelSystem(u32 system_mode) {
KernelSystem::KernelSystem(Memory::MemorySystem& memory, u32 system_mode) : memory(memory) {
MemoryInit(system_mode);
resource_limits = std::make_unique<ResourceLimitList>(*this);