diff options
Diffstat (limited to 'src/core/memory.h')
| -rw-r--r-- | src/core/memory.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/memory.h b/src/core/memory.h index f22c0a2d8..780c45385 100644 --- a/src/core/memory.h +++ b/src/core/memory.h | |||
| @@ -437,6 +437,19 @@ public: | |||
| 437 | std::size_t size); | 437 | std::size_t size); |
| 438 | 438 | ||
| 439 | /** | 439 | /** |
| 440 | * Zeros a range of bytes within the current process' address space at the specified | ||
| 441 | * virtual address. | ||
| 442 | * | ||
| 443 | * @param process The process that will have data zeroed within its address space. | ||
| 444 | * @param dest_addr The destination virtual address to zero the data from. | ||
| 445 | * @param size The size of the range to zero out, in bytes. | ||
| 446 | * | ||
| 447 | * @post The range [dest_addr, size) within the process' address space contains the | ||
| 448 | * value 0. | ||
| 449 | */ | ||
| 450 | void ZeroBlock(const Kernel::KProcess& process, VAddr dest_addr, std::size_t size); | ||
| 451 | |||
| 452 | /** | ||
| 440 | * Marks each page within the specified address range as cached or uncached. | 453 | * Marks each page within the specified address range as cached or uncached. |
| 441 | * | 454 | * |
| 442 | * @param vaddr The virtual address indicating the start of the address range. | 455 | * @param vaddr The virtual address indicating the start of the address range. |