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

@ -96,12 +96,12 @@ namespace ams::secmon::smc {
}
SmcResult SmcPowerOffCpu(const SmcArguments &args) {
SmcResult SmcPowerOffCpu(SmcArguments &args) {
/* TODO */
return SmcResult::NotImplemented;
}
SmcResult SmcPowerOnCpu(const SmcArguments &args) {
SmcResult SmcPowerOnCpu(SmcArguments &args) {
/* Get and validate the core to power on. */
const int which_core = args.r[1];
if (!(0 <= which_core && which_core < NumCores)) {
@ -128,7 +128,7 @@ namespace ams::secmon::smc {
return SmcResult::PsciSuccess;
}
SmcResult SmcSuspendCpu(const SmcArguments &args) {
SmcResult SmcSuspendCpu(SmcArguments &args) {
/* TODO */
return SmcResult::NotImplemented;
}