From 40bccd78385bd8745979ebddd097662574d6113c Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 5 Dec 2018 23:15:56 -0800 Subject: [PATCH] Add svcTerminateDebugProcess --- nx/include/switch/kernel/svc.h | 8 ++++++++ nx/source/kernel/svc.s | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/nx/include/switch/kernel/svc.h b/nx/include/switch/kernel/svc.h index c43ed999..8dd70bfe 100644 --- a/nx/include/switch/kernel/svc.h +++ b/nx/include/switch/kernel/svc.h @@ -841,6 +841,14 @@ Result svcDebugActiveProcess(Handle* debug, u64 processID); */ Result svcBreakDebugProcess(Handle debug); +/** + * @brief Terminates the process of an active debugging session. + * @return Result code. + * @note Syscall number 0x62. + * @warning This is a privileged syscall. Use \ref envIsSyscallHinted to check if it is available. + */ +Result svcTerminateDebugProcess(Handle debug); + /** * @brief Gets an incoming debug event from a debugging session. * @return Result code. diff --git a/nx/source/kernel/svc.s b/nx/source/kernel/svc.s index e11fe61e..351d617f 100644 --- a/nx/source/kernel/svc.s +++ b/nx/source/kernel/svc.s @@ -451,6 +451,11 @@ SVC_BEGIN svcBreakDebugProcess ret SVC_END +SVC_BEGIN svcTerminateDebugProcess + svc 0x62 + ret +SVC_END + SVC_BEGIN svcGetDebugEvent svc 0x63 ret