kern: implement page group unmapping

This commit is contained in:
Michael Scire committed 2020-02-18 01:04:44 -08:00
1 parent 25b0baae59
commit 154422562a
11 files changed
+654 -12

No files matched your search

@@ -145,7 +145,7 @@ namespace ams::kern {
Result KInitialProcessReader::Load(KProcessAddress address, const ams::svc::CreateProcessParameter &params) const {
/* Clear memory at the address. */
std::memset(GetVoidPointer(address), 0, params.code_num_pages);
std::memset(GetVoidPointer(address), 0, params.code_num_pages * PageSize);
/* Prepare to layout the data. */
const KProcessAddress rx_address = address + this->kip_header->GetRxAddress();