kern: SvcGetDebugThreadParam

This commit is contained in:
Michael Scire 2020-07-31 01:59:46 -07:00 committed by SciresM
parent e1f3bb10a5
commit 3afd723b92
6 changed files with 140 additions and 3 deletions

View file

@ -23,7 +23,7 @@ namespace ams::kern {
class KAutoObjectWithListContainer {
NON_COPYABLE(KAutoObjectWithListContainer);
NON_MOVEABLE(KAutoObjectWithListContainer);
private:
public:
using ListType = util::IntrusiveRedBlackTreeMemberTraits<&KAutoObjectWithList::list_node>::TreeType<KAutoObjectWithList>;
public:
class ListAccessor : public KScopedLightLock {

View file

@ -522,6 +522,7 @@ namespace ams::kern {
return ConditionVariableThreadTreeTraits::IsValid();
}
static KThread *GetThreadFromId(u64 thread_id);
static Result GetThreadList(s32 *out_num_threads, ams::kern::svc::KUserPointer<u64 *> out_thread_ids, s32 max_out_count);
using ConditionVariableThreadTreeType = ConditionVariableThreadTree;

View file

@ -71,6 +71,7 @@ namespace ams::kern::svc {
/* 260 */ using ::ams::svc::ResultMessageTooLarge;
/* 517 */ using ::ams::svc::ResultInvalidProcessId;
/* 518 */ using ::ams::svc::ResultInvalidThreadId;
/* 520 */ using ::ams::svc::ResultProcessTerminated;
}