mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +00:00
vm: allow 4k-aligned allocations for vm::stack
Fix utils::shm::map logic for MapViewOfFileEx
This commit is contained in:
parent
c49c7de427
commit
85fa0942e7
4 changed files with 117 additions and 37 deletions
|
|
@ -348,7 +348,7 @@ void ppu_thread::on_init(const std::shared_ptr<void>& _this)
|
|||
if (!stack_addr)
|
||||
{
|
||||
// Allocate stack + gap between stacks
|
||||
auto new_stack_base = vm::alloc(stack_size + 4096, vm::stack);
|
||||
auto new_stack_base = vm::alloc(stack_size + 4096, vm::stack, 4096);
|
||||
if (!new_stack_base)
|
||||
{
|
||||
fmt::throw_exception("Out of stack memory (size=0x%x)" HERE, stack_size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue