exo2: Implement SmcReadWriteRegister

This commit is contained in:
Michael Scire 2020-05-14 15:57:22 -07:00 committed by SciresM
parent 8c4c1db506
commit e3eadcd2e3
35 changed files with 918 additions and 139 deletions

View file

@ -207,7 +207,7 @@ namespace ams::secmon::smc {
return (info.restriction_mask & secmon::GetRestrictedSmcMask()) != 0;
}
SmcResult InvokeSmcHandler(const HandlerInfo &info, const SmcArguments &args) {
SmcResult InvokeSmcHandler(const HandlerInfo &info, SmcArguments &args) {
/* Check if the smc is restricted. */
if (AMS_UNLIKELY(IsHandlerRestricted(info))) {
return SmcResult::NotPermitted;