mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-20 03:24:49 +00:00
libraries/fiber: print fiber ctx size on stack overflow
This commit is contained in:
parent
a4eba8e827
commit
b3c573f798
1 changed files with 2 additions and 1 deletions
|
@ -37,8 +37,9 @@ extern "C" void PS4_SYSV_ABI _sceFiberForceQuit(u64 ret) {
|
|||
|
||||
void PS4_SYSV_ABI _sceFiberCheckStackOverflow(OrbisFiberContext* ctx) {
|
||||
u64* stack_base = reinterpret_cast<u64*>(ctx->current_fiber->addr_context);
|
||||
u64 stack_size = ctx->current_fiber->size_context;
|
||||
if (stack_base && *stack_base != kFiberStackSignature) {
|
||||
UNREACHABLE_MSG("Stack overflow detected in fiber.");
|
||||
UNREACHABLE_MSG("Stack overflow detected in fiber with size = 0x{:x}", stack_size);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue