kern: add hardware single step extension

This commit is contained in:
Michael Scire authored and SciresM committed 2021-09-11 19:41:47 -07:00
1 parent 904ab19823
commit 4075d24e0c
10 files changed
+226 -4

No files matched your search

@@ -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();
}