mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-31 06:32:41 +00:00
sys_memory: Improve sys_memory_get_page_attribute for stack
This commit is contained in:
parent
83d71519e0
commit
f22348a9f9
@ -184,7 +184,7 @@ error_code sys_memory_get_page_attribute(u32 addr, vm::ptr<sys_page_attr_t> attr
|
|||||||
}
|
}
|
||||||
|
|
||||||
attr->attribute = 0x40000ull; // SYS_MEMORY_PROT_READ_WRITE (TODO)
|
attr->attribute = 0x40000ull; // SYS_MEMORY_PROT_READ_WRITE (TODO)
|
||||||
attr->access_right = 0xFull; // SYS_MEMORY_ACCESS_RIGHT_ANY (TODO)
|
attr->access_right = addr >> 28 == 0xdu ? SYS_MEMORY_ACCESS_RIGHT_PPU_THR : SYS_MEMORY_ACCESS_RIGHT_ANY;// (TODO)
|
||||||
|
|
||||||
if (vm::check_addr(addr, 1, vm::page_1m_size))
|
if (vm::check_addr(addr, 1, vm::page_1m_size))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user