kern: add hardware single step extension

This commit is contained in:
Michael Scire
2021-07-27 05:34:40 -07:00
parent e34a9ba521
commit ae91a32059
10 changed files with 226 additions and 4 deletions

View File

@@ -271,6 +271,16 @@ namespace ams::kern::svc {
*out = KTraceValue;
}
break;
case ams::svc::MesosphereMetaInfo_IsSingleStepEnabled:
{
/* Return whether the kernel supports hardware single step. */
#if defined(MESOSPHERE_ENABLE_HARDWARE_SINGLE_STEP)
*out = 1;
#else
*out = 0;
#endif
}
break;
default:
return svc::ResultInvalidCombination();
}