Fix primary stack size

This commit is contained in:
Nekotekina 2017-12-25 21:06:09 +03:00
parent 3cf0fb60a4
commit 0a89f1db39
2 changed files with 14 additions and 2 deletions

View file

@ -677,7 +677,7 @@ ppu_thread::~ppu_thread()
ppu_thread::ppu_thread(const std::string& name, u32 prio, u32 stack)
: cpu_thread(idm::last_id())
, prio(prio)
, stack_size(stack ? ::align(std::min<u32>(stack, 0x100000), 0x1000) : 0x4000)
, stack_size(stack >= 0x1000 ? ::align(std::min<u32>(stack, 0x100000), 0x1000) : 0x4000)
, stack_addr(0)
, start_time(get_system_time())
, m_name(name)