diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/memory.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 190ccc25c..a18e27da0 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp | |||
| @@ -115,11 +115,6 @@ static std::set<MemoryHookPointer> GetSpecialHandlers(const PageTable& page_tabl | |||
| 115 | return result; | 115 | return result; |
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | static std::set<MemoryHookPointer> GetSpecialHandlers(VAddr vaddr, u64 size) { | ||
| 119 | const PageTable& page_table = Core::CurrentProcess()->vm_manager.page_table; | ||
| 120 | return GetSpecialHandlers(page_table, vaddr, size); | ||
| 121 | } | ||
| 122 | |||
| 123 | /** | 118 | /** |
| 124 | * Gets a pointer to the exact memory at the virtual address (i.e. not page aligned) | 119 | * Gets a pointer to the exact memory at the virtual address (i.e. not page aligned) |
| 125 | * using a VMA from the current process | 120 | * using a VMA from the current process |
| @@ -587,8 +582,6 @@ void ZeroBlock(const Kernel::Process& process, const VAddr dest_addr, const size | |||
| 587 | size_t page_index = dest_addr >> PAGE_BITS; | 582 | size_t page_index = dest_addr >> PAGE_BITS; |
| 588 | size_t page_offset = dest_addr & PAGE_MASK; | 583 | size_t page_offset = dest_addr & PAGE_MASK; |
| 589 | 584 | ||
| 590 | static const std::array<u8, PAGE_SIZE> zeros = {}; | ||
| 591 | |||
| 592 | while (remaining_size > 0) { | 585 | while (remaining_size > 0) { |
| 593 | const size_t copy_amount = | 586 | const size_t copy_amount = |
| 594 | std::min(static_cast<size_t>(PAGE_SIZE) - page_offset, remaining_size); | 587 | std::min(static_cast<size_t>(PAGE_SIZE) - page_offset, remaining_size); |