From 185a83f06d138bdf44cb1931420fe7d0ed1bb322 Mon Sep 17 00:00:00 2001 From: Weiyi Wang Date: Sat, 17 Nov 2018 15:11:07 -0500 Subject: [PATCH] Memory: remove ZeroBlock with current process --- src/core/memory.cpp | 4 ---- src/core/memory.h | 1 - 2 files changed, 5 deletions(-) diff --git a/src/core/memory.cpp b/src/core/memory.cpp index ef3b64c556..238d2d414f 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -595,10 +595,6 @@ void ZeroBlock(const Kernel::Process& process, const VAddr dest_addr, const std: } } -void ZeroBlock(const VAddr dest_addr, const std::size_t size) { - ZeroBlock(*Core::System::GetInstance().Kernel().GetCurrentProcess(), dest_addr, size); -} - void CopyBlock(const Kernel::Process& process, VAddr dest_addr, VAddr src_addr, const std::size_t size) { auto& page_table = process.vm_manager.page_table; diff --git a/src/core/memory.h b/src/core/memory.h index 60b1027656..06f3aed241 100644 --- a/src/core/memory.h +++ b/src/core/memory.h @@ -200,7 +200,6 @@ void ReadBlock(const Kernel::Process& process, VAddr src_addr, void* dest_buffer void WriteBlock(const Kernel::Process& process, VAddr dest_addr, const void* src_buffer, std::size_t size); void ZeroBlock(const Kernel::Process& process, VAddr dest_addr, const std::size_t size); -void ZeroBlock(VAddr dest_addr, const std::size_t size); void CopyBlock(const Kernel::Process& process, VAddr dest_addr, VAddr src_addr, std::size_t size); void CopyBlock(VAddr dest_addr, VAddr src_addr, std::size_t size); void CopyBlock(const Kernel::Process& src_process, const Kernel::Process& dest_process,