mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-20 09:22:11 +00:00
kern: slightly improve genericity of debugger break event
This commit is contained in:
parent
df5537b748
commit
dcdf46f576
1 changed files with 5 additions and 2 deletions
|
@ -308,8 +308,11 @@ namespace ams::kern {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Send an exception event to represent our breaking the process. */
|
/* Send an exception event to represent our breaking the process. */
|
||||||
static_assert(util::size(thread_ids) >= 4);
|
/* TODO: How should this be handled in the case of more than 4 physical cores? */
|
||||||
this->PushDebugEvent(ams::svc::DebugEvent_Exception, ams::svc::DebugException_DebuggerBreak, thread_ids[0], thread_ids[1], thread_ids[2], thread_ids[3]);
|
static_assert(util::size(thread_ids) <= 4);
|
||||||
|
[&]<size_t... Ix>(std::index_sequence<Ix...>) ALWAYS_INLINE_LAMBDA {
|
||||||
|
this->PushDebugEvent(ams::svc::DebugEvent_Exception, ams::svc::DebugException_DebuggerBreak, thread_ids[Ix]...);
|
||||||
|
}(std::make_index_sequence<util::size(thread_ids)>());
|
||||||
|
|
||||||
/* Signal. */
|
/* Signal. */
|
||||||
this->NotifyAvailable();
|
this->NotifyAvailable();
|
||||||
|
|
Loading…
Reference in a new issue