mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-20 09:55:07 -04:00
ldr/hbl: support address space width overrides
This commit is contained in:
parent
835aa6b9db
commit
dd56f8449f
5 changed files with 99 additions and 5 deletions
|
@ -262,7 +262,11 @@ namespace ams::ldr {
|
|||
flags |= svc::CreateProcessFlag_AddressSpace32BitWithoutAlias;
|
||||
break;
|
||||
case Npdm::AddressSpaceType_64Bit:
|
||||
flags |= svc::CreateProcessFlag_AddressSpace64Bit;
|
||||
if (hos::GetVersion() >= hos::Version_2_0_0 || svc::IsKernelMesosphere()) {
|
||||
flags |= svc::CreateProcessFlag_AddressSpace64Bit;
|
||||
} else {
|
||||
flags |= svc::CreateProcessFlag_AddressSpace64BitDeprecated;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return ResultInvalidMeta();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue