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;
}