summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-06 03:31:56 +0200
committerLioncash <mathew1800@gmail.com>2018-08-06 03:38:22 +0200
commit2fc5c783edf2382968f573aca1e33a43d9f12877 (patch)
tree72e5629afe9288eb38ccd53c4798e57694ca68fe /src/core
parentMerge pull request #927 from bunnei/fix-texs (diff)
downloadyuzu-2fc5c783edf2382968f573aca1e33a43d9f12877.tar
yuzu-2fc5c783edf2382968f573aca1e33a43d9f12877.tar.gz
yuzu-2fc5c783edf2382968f573aca1e33a43d9f12877.tar.bz2
yuzu-2fc5c783edf2382968f573aca1e33a43d9f12877.tar.lz
yuzu-2fc5c783edf2382968f573aca1e33a43d9f12877.tar.xz
yuzu-2fc5c783edf2382968f573aca1e33a43d9f12877.tar.zst
yuzu-2fc5c783edf2382968f573aca1e33a43d9f12877.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/memory.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/core/memory.h b/src/core/memory.h
index b5d885b8a..1d0484c0c 100644
--- a/src/core/memory.h
+++ b/src/core/memory.h
@@ -140,10 +140,10 @@ void SetCurrentPageTable(PageTable* page_table);
PageTable* GetCurrentPageTable();
/// Determines if the given VAddr is valid for the specified process.
-bool IsValidVirtualAddress(const Kernel::Process& process, const VAddr vaddr);
-bool IsValidVirtualAddress(const VAddr addr);
+bool IsValidVirtualAddress(const Kernel::Process& process, VAddr vaddr);
+bool IsValidVirtualAddress(VAddr addr);
/// Determines if the given VAddr is a kernel address
-bool IsKernelVirtualAddress(const VAddr addr);
+bool IsKernelVirtualAddress(VAddr addr);
u8 Read8(VAddr addr);
u16 Read16(VAddr addr);
@@ -155,13 +155,12 @@ void Write16(VAddr addr, u16 data);
void Write32(VAddr addr, u32 data);
void Write64(VAddr addr, u64 data);
-void ReadBlock(const Kernel::Process& process, const VAddr src_addr, void* dest_buffer,
- size_t size);
-void ReadBlock(const VAddr src_addr, void* dest_buffer, size_t size);
-void WriteBlock(const Kernel::Process& process, const VAddr dest_addr, const void* src_buffer,
+void ReadBlock(const Kernel::Process& process, VAddr src_addr, void* dest_buffer, size_t size);
+void ReadBlock(VAddr src_addr, void* dest_buffer, size_t size);
+void WriteBlock(const Kernel::Process& process, VAddr dest_addr, const void* src_buffer,
size_t size);
-void WriteBlock(const VAddr dest_addr, const void* src_buffer, size_t size);
-void ZeroBlock(const VAddr dest_addr, const size_t size);
+void WriteBlock(VAddr dest_addr, const void* src_buffer, size_t size);
+void ZeroBlock(VAddr dest_addr, size_t size);
void CopyBlock(VAddr dest_addr, VAddr src_addr, size_t size);
u8* GetPointer(VAddr virtual_address);