tio: add stub sysmodule to host target io server

This commit is contained in:
Michael Scire 2021-02-24 04:17:00 -08:00
parent e7f61805d0
commit b70fea933c
2 changed files with 7 additions and 0 deletions

View File

@ -144,6 +144,11 @@ namespace ams::impl {
AMS_DEFINE_SYSTEM_THREAD(10, tma, BridgePcieDriver);
/* DevServer/TioServer. */
AMS_DEFINE_SYSTEM_THREAD(21, TioServer, Main);
AMS_DEFINE_SYSTEM_THREAD(21, TioServer, FileServerHtcsServer);
AMS_DEFINE_SYSTEM_THREAD(21, TioServer, SdCardObserver);
#undef AMS_DEFINE_SYSTEM_THREAD

View File

@ -101,6 +101,7 @@ namespace ams::ncm {
static const SystemProgramId Manu;
static const SystemProgramId Htc;
static const SystemProgramId DevServer;
};
struct AtmosphereProgramId {
@ -202,6 +203,7 @@ namespace ams::ncm {
inline constexpr const SystemProgramId SystemProgramId::Manu = { 0x010000000000B14Aul };
inline constexpr const SystemProgramId SystemProgramId::Htc = { 0x010000000000B240ul };
inline constexpr const SystemProgramId SystemProgramId::DevServer = { 0x010000000000D623ul };
inline constexpr bool IsSystemProgramId(const ProgramId &program_id) {
return (SystemProgramId::Start <= program_id && program_id <= SystemProgramId::End) || IsAtmosphereProgramId(program_id);