mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
sys_spu: add vm::temporary_unlock
This commit is contained in:
parent
1a1eff66bc
commit
cfa1416d64
4 changed files with 189 additions and 103 deletions
|
|
@ -271,7 +271,7 @@ error_code sys_spu_elf_get_segments(u32 elf_img, vm::ptr<sys_spu_segment> segmen
|
|||
return CELL_OK;
|
||||
}
|
||||
|
||||
error_code sys_spu_image_import(vm::ptr<sys_spu_image> img, u32 src, u32 type)
|
||||
error_code sys_spu_image_import(ppu_thread& ppu, vm::ptr<sys_spu_image> img, u32 src, u32 type)
|
||||
{
|
||||
sysPrxForUser.warning("sys_spu_image_import(img=*0x%x, src=0x%x, type=%d)", img, src, type);
|
||||
|
||||
|
|
@ -324,7 +324,7 @@ error_code sys_spu_image_import(vm::ptr<sys_spu_image> img, u32 src, u32 type)
|
|||
img_size = std::max<u32>(img_size, static_cast<u32>(p.p_offset + p.p_filesz));
|
||||
}
|
||||
|
||||
return _sys_spu_image_import(img, src, img_size, 0);
|
||||
return _sys_spu_image_import(ppu, img, src, img_size, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -357,7 +357,7 @@ error_code sys_spu_image_import(vm::ptr<sys_spu_image> img, u32 src, u32 type)
|
|||
}
|
||||
}
|
||||
|
||||
error_code sys_spu_image_close(vm::ptr<sys_spu_image> img)
|
||||
error_code sys_spu_image_close(ppu_thread& ppu, vm::ptr<sys_spu_image> img)
|
||||
{
|
||||
sysPrxForUser.warning("sys_spu_image_close(img=*0x%x)", img);
|
||||
|
||||
|
|
@ -369,7 +369,7 @@ error_code sys_spu_image_close(vm::ptr<sys_spu_image> img)
|
|||
else if (img->type == SYS_SPU_IMAGE_TYPE_KERNEL)
|
||||
{
|
||||
// Call the syscall
|
||||
return _sys_spu_image_close(img);
|
||||
return _sys_spu_image_close(ppu, img);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue