Add debug info to ENOMEMs

This commit is contained in:
Eladash 2024-02-15 22:29:45 +02:00 committed by Elad.Ash
parent 989b353fbd
commit 27ea25a999
3 changed files with 4 additions and 3 deletions

View file

@ -507,7 +507,7 @@ error_code _sys_ppu_thread_create(ppu_thread& ppu, vm::ptr<u64> thread_id, vm::p
// Try to obtain "physical memory" from the default container
if (!dct.take(stack_size))
{
return CELL_ENOMEM;
return {CELL_ENOMEM, dct.size - dct.used};
}
const vm::addr_t stack_base{vm::alloc(stack_size, vm::stack, 4096)};