From 7fcd0fee6d580a381fdc4a4ec5b77687e4857b5b Mon Sep 17 00:00:00 2001 From: Fernando Sahmkow Date: Sun, 5 Apr 2020 17:23:49 -0400 Subject: Buffer Cache: Use vAddr instead of physical memory. --- src/core/memory.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/core/memory.h') diff --git a/src/core/memory.h b/src/core/memory.h index 8913a9da4..97750f851 100644 --- a/src/core/memory.h +++ b/src/core/memory.h @@ -294,6 +294,9 @@ public: void ReadBlock(const Kernel::Process& process, VAddr src_addr, void* dest_buffer, std::size_t size); + void ReadBlockUnsafe(const Kernel::Process& process, VAddr src_addr, void* dest_buffer, + std::size_t size); + /** * Reads a contiguous block of bytes from the current process' address space. * @@ -312,6 +315,8 @@ public: */ void ReadBlock(VAddr src_addr, void* dest_buffer, std::size_t size); + void ReadBlockUnsafe(VAddr src_addr, void* dest_buffer, std::size_t size); + /** * Writes a range of bytes into a given process' address space at the specified * virtual address. @@ -335,6 +340,9 @@ public: void WriteBlock(const Kernel::Process& process, VAddr dest_addr, const void* src_buffer, std::size_t size); + void WriteBlockUnsafe(const Kernel::Process& process, VAddr dest_addr, const void* src_buffer, + std::size_t size); + /** * Writes a range of bytes into the current process' address space at the specified * virtual address. @@ -356,6 +364,8 @@ public: */ void WriteBlock(VAddr dest_addr, const void* src_buffer, std::size_t size); + void WriteBlockUnsafe(VAddr dest_addr, const void* src_buffer, std::size_t size); + /** * Fills the specified address range within a process' address space with zeroes. * -- cgit v1.2.3