kern SvcGetCurrentProcessorNumber, SvcSetProcessActivity, half of SvcSetThreadActivity

This commit is contained in:
Michael Scire 2020-07-23 03:04:43 -07:00 committed by SciresM
parent 23eed522d3
commit 1d4d637818
6 changed files with 148 additions and 7 deletions

View file

@ -21,20 +21,22 @@ namespace ams::kern::svc {
namespace {
int32_t GetCurrentProcessorNumber() {
return GetCurrentCoreId();
}
}
/* ============================= 64 ABI ============================= */
int32_t GetCurrentProcessorNumber64() {
MESOSPHERE_PANIC("Stubbed SvcGetCurrentProcessorNumber64 was called.");
return GetCurrentProcessorNumber();
}
/* ============================= 64From32 ABI ============================= */
int32_t GetCurrentProcessorNumber64From32() {
MESOSPHERE_PANIC("Stubbed SvcGetCurrentProcessorNumber64From32 was called.");
return GetCurrentProcessorNumber();
}
}