kernel: offset code entry point for 39-bit address space type (#11326)

This commit is contained in:
liamwhite
2023-08-25 17:59:32 -04:00
committed by GitHub
parent 92e6ff30a1
commit 18ad55be0b
7 changed files with 33 additions and 11 deletions

View File

@ -167,7 +167,7 @@ AppLoader_NSO::LoadResult AppLoader_NSO::Load(Kernel::KProcess& process, Core::S
modules.clear();
// Load module
const VAddr base_address = GetInteger(process.GetPageTable().GetCodeRegionStart());
const VAddr base_address = GetInteger(process.GetEntryPoint());
if (!LoadModule(process, system, *file, base_address, true, true)) {
return {ResultStatus::ErrorLoadingNSO, {}};
}