1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-19 08:52:25 +00:00

exo2: properly perform smc restriction

This commit is contained in:
Michael Scire 2020-06-12 03:34:06 -07:00 committed by SciresM
parent d165ec7162
commit c827c0d599

View file

@ -231,7 +231,7 @@ namespace ams::secmon::smc {
SmcResult InvokeSmcHandler(const HandlerInfo &info, SmcArguments &args) {
/* Check if the smc is restricted. */
if (GetTargetFirmware() >= TargetFirmware_4_0_0 && AMS_UNLIKELY(IsHandlerRestricted(info))) {
if (GetTargetFirmware() >= TargetFirmware_8_0_0 && AMS_UNLIKELY(IsHandlerRestricted(info))) {
return SmcResult::NotPermitted;
}