mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
VERIFY macro removed
This commit is contained in:
parent
cc46f2d7e6
commit
05fb57baff
36 changed files with 108 additions and 145 deletions
|
|
@ -48,7 +48,7 @@ ppu_error_code sys_memory_allocate(u32 size, u64 flags, vm::ptr<u32> alloc_addr)
|
|||
}
|
||||
|
||||
// Allocate memory, write back the start address of the allocated area
|
||||
VERIFY(*alloc_addr = vm::alloc(size, vm::user_space, flags == SYS_MEMORY_PAGE_SIZE_1M ? 0x100000 : 0x10000));
|
||||
*alloc_addr = verify(vm::alloc(size, vm::user_space, flags == SYS_MEMORY_PAGE_SIZE_1M ? 0x100000 : 0x10000), HERE);
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
|
|
@ -111,7 +111,7 @@ ppu_error_code sys_memory_allocate_from_container(u32 size, u32 cid, u64 flags,
|
|||
}
|
||||
|
||||
// Allocate memory, write back the start address of the allocated area, use cid as the supplementary info
|
||||
VERIFY(*alloc_addr = vm::alloc(size, vm::user_space, flags == SYS_MEMORY_PAGE_SIZE_1M ? 0x100000 : 0x10000, cid));
|
||||
*alloc_addr = verify(vm::alloc(size, vm::user_space, flags == SYS_MEMORY_PAGE_SIZE_1M ? 0x100000 : 0x10000, cid), HERE);
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
|
|
@ -122,7 +122,7 @@ ppu_error_code sys_memory_free(u32 addr)
|
|||
|
||||
const auto area = vm::get(vm::user_space);
|
||||
|
||||
VERIFY(area);
|
||||
verify(HERE), area;
|
||||
|
||||
// Deallocate memory
|
||||
u32 cid, size = area->dealloc(addr, &cid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue