Kernel: replace usage of Core::System::GetInstance().PrepareReschedule() with callback

This commit is contained in:
Weiyi Wang
2019-02-01 12:19:20 -05:00
parent eb050b8403
commit 20f47583f6
9 changed files with 25 additions and 13 deletions

View File

@@ -15,7 +15,7 @@ TEST_CASE("Memory::IsValidVirtualAddress", "[core][memory]") {
Core::System::GetInstance().timing = std::make_unique<Core::Timing>();
Core::System::GetInstance().memory = std::make_unique<Memory::MemorySystem>();
Kernel::KernelSystem kernel(*Core::System::GetInstance().memory,
*Core::System::GetInstance().timing, 0);
*Core::System::GetInstance().timing, [] {}, 0);
SECTION("these regions should not be mapped on an empty process") {
auto process = kernel.CreateProcess(kernel.CreateCodeSet("", 0));
CHECK(Memory::IsValidVirtualAddress(*process, Memory::PROCESS_IMAGE_VADDR) == false);