summaryrefslogtreecommitdiff
path: root/src/core/memory.h
diff options
context:
space:
mode:
authorGravatar bunnei2021-04-23 22:04:28 -0700
committerGravatar bunnei2021-05-05 16:40:52 -0700
commit2a7eff57a8048933a89c1a8f8d6dced7b5d604f2 (patch)
tree757a2207ab4d29b39ee8d9ddfa79966283d4d24a /src/core/memory.h
parenthle: kernel: Remove deprecated Object class. (diff)
downloadyuzu-2a7eff57a8048933a89c1a8f8d6dced7b5d604f2.tar.gz
yuzu-2a7eff57a8048933a89c1a8f8d6dced7b5d604f2.tar.xz
yuzu-2a7eff57a8048933a89c1a8f8d6dced7b5d604f2.zip
hle: kernel: Rename Process to KProcess.
Diffstat (limited to 'src/core/memory.h')
-rw-r--r--src/core/memory.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/memory.h b/src/core/memory.h
index 9a706a9ac..345fd870d 100644
--- a/src/core/memory.h
+++ b/src/core/memory.h
@@ -19,7 +19,7 @@ class System;
19 19
20namespace Kernel { 20namespace Kernel {
21class PhysicalMemory; 21class PhysicalMemory;
22class Process; 22class KProcess;
23} // namespace Kernel 23} // namespace Kernel
24 24
25namespace Core::Memory { 25namespace Core::Memory {
@@ -68,7 +68,7 @@ public:
68 * 68 *
69 * @param process The process to use the page table of. 69 * @param process The process to use the page table of.
70 */ 70 */
71 void SetCurrentPageTable(Kernel::Process& process, u32 core_id); 71 void SetCurrentPageTable(Kernel::KProcess& process, u32 core_id);
72 72
73 /** 73 /**
74 * Maps an allocated buffer onto a region of the emulated process address space. 74 * Maps an allocated buffer onto a region of the emulated process address space.
@@ -99,7 +99,7 @@ public:
99 * 99 *
100 * @returns True if the given virtual address is valid, false otherwise. 100 * @returns True if the given virtual address is valid, false otherwise.
101 */ 101 */
102 bool IsValidVirtualAddress(const Kernel::Process& process, VAddr vaddr) const; 102 bool IsValidVirtualAddress(const Kernel::KProcess& process, VAddr vaddr) const;
103 103
104 /** 104 /**
105 * Checks whether or not the supplied address is a valid virtual 105 * Checks whether or not the supplied address is a valid virtual
@@ -333,7 +333,7 @@ public:
333 * @post The range [dest_buffer, size) contains the read bytes from the 333 * @post The range [dest_buffer, size) contains the read bytes from the
334 * process' address space. 334 * process' address space.
335 */ 335 */
336 void ReadBlock(const Kernel::Process& process, VAddr src_addr, void* dest_buffer, 336 void ReadBlock(const Kernel::KProcess& process, VAddr src_addr, void* dest_buffer,
337 std::size_t size); 337 std::size_t size);
338 338
339 /** 339 /**
@@ -354,7 +354,7 @@ public:
354 * @post The range [dest_buffer, size) contains the read bytes from the 354 * @post The range [dest_buffer, size) contains the read bytes from the
355 * process' address space. 355 * process' address space.
356 */ 356 */
357 void ReadBlockUnsafe(const Kernel::Process& process, VAddr src_addr, void* dest_buffer, 357 void ReadBlockUnsafe(const Kernel::KProcess& process, VAddr src_addr, void* dest_buffer,
358 std::size_t size); 358 std::size_t size);
359 359
360 /** 360 /**
@@ -414,7 +414,7 @@ public:
414 * and will mark that region as invalidated to caches that the active 414 * and will mark that region as invalidated to caches that the active
415 * graphics backend may be maintaining over the course of execution. 415 * graphics backend may be maintaining over the course of execution.
416 */ 416 */
417 void WriteBlock(const Kernel::Process& process, VAddr dest_addr, const void* src_buffer, 417 void WriteBlock(const Kernel::KProcess& process, VAddr dest_addr, const void* src_buffer,
418 std::size_t size); 418 std::size_t size);
419 419
420 /** 420 /**
@@ -434,7 +434,7 @@ public:
434 * will be ignored and an error will be logged. 434 * will be ignored and an error will be logged.
435 * 435 *
436 */ 436 */
437 void WriteBlockUnsafe(const Kernel::Process& process, VAddr dest_addr, const void* src_buffer, 437 void WriteBlockUnsafe(const Kernel::KProcess& process, VAddr dest_addr, const void* src_buffer,
438 std::size_t size); 438 std::size_t size);
439 439
440 /** 440 /**
@@ -486,7 +486,7 @@ public:
486 * @post The range [dest_addr, size) within the process' address space is 486 * @post The range [dest_addr, size) within the process' address space is
487 * filled with zeroes. 487 * filled with zeroes.
488 */ 488 */
489 void ZeroBlock(const Kernel::Process& process, VAddr dest_addr, std::size_t size); 489 void ZeroBlock(const Kernel::KProcess& process, VAddr dest_addr, std::size_t size);
490 490
491 /** 491 /**
492 * Fills the specified address range within the current process' address space with zeroes. 492 * Fills the specified address range within the current process' address space with zeroes.
@@ -511,7 +511,7 @@ public:
511 * @post The range [dest_addr, size) within the process' address space contains the 511 * @post The range [dest_addr, size) within the process' address space contains the
512 * same data within the range [src_addr, size). 512 * same data within the range [src_addr, size).
513 */ 513 */
514 void CopyBlock(const Kernel::Process& process, VAddr dest_addr, VAddr src_addr, 514 void CopyBlock(const Kernel::KProcess& process, VAddr dest_addr, VAddr src_addr,
515 std::size_t size); 515 std::size_t size);
516 516
517 /** 517 /**