mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-31 14:58:22 -04:00
ams-1.0.0: meso no longer optional, remove conditional logic
This commit is contained in:
parent
320f0bbcfd
commit
da208f8001
10 changed files with 19 additions and 53 deletions
|
@ -56,27 +56,11 @@ namespace ams::os::impl {
|
|||
}
|
||||
|
||||
static u64 GetAslrSpaceBeginAddress() {
|
||||
if (hos::GetVersion() >= hos::Version_2_0_0 || svc::IsKernelMesosphere()) {
|
||||
return GetAslrInfo(svc::InfoType_AslrRegionAddress);
|
||||
} else {
|
||||
if (GetHeapSpaceBeginAddress() < AslrBase64BitDeprecated || GetAliasSpaceBeginAddress() < AslrBase64BitDeprecated) {
|
||||
return AslrBase32Bit;
|
||||
} else {
|
||||
return AslrBase64BitDeprecated;
|
||||
}
|
||||
}
|
||||
return GetAslrInfo(svc::InfoType_AslrRegionAddress);
|
||||
}
|
||||
|
||||
static u64 GetAslrSpaceEndAddress() {
|
||||
if (hos::GetVersion() >= hos::Version_2_0_0 || svc::IsKernelMesosphere()) {
|
||||
return GetAslrInfo(svc::InfoType_AslrRegionAddress) + GetAslrInfo(svc::InfoType_AslrRegionSize);
|
||||
} else {
|
||||
if (GetHeapSpaceBeginAddress() < AslrBase64BitDeprecated || GetAliasSpaceBeginAddress() < AslrBase64BitDeprecated) {
|
||||
return AslrBase32Bit + AslrSize32Bit;
|
||||
} else {
|
||||
return AslrBase64BitDeprecated + AslrSize64BitDeprecated;
|
||||
}
|
||||
}
|
||||
return GetAslrInfo(svc::InfoType_AslrRegionAddress) + GetAslrInfo(svc::InfoType_AslrRegionSize);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue