Best-guess process info block.

This commit is contained in:
Ben Vanik
2015-06-04 17:46:00 -07:00
parent f9742cc3eb
commit 52060af847
3 changed files with 82 additions and 3 deletions

View File

@@ -253,6 +253,8 @@ X_STATUS XThread::Create() {
xe::store_and_swap<uint32_t>(p + 0x078, thread_state_address_ + 0x074);
xe::store_and_swap<uint32_t>(p + 0x07C, thread_state_address_ + 0x07C);
xe::store_and_swap<uint32_t>(p + 0x080, thread_state_address_ + 0x07C);
xe::store_and_swap<uint32_t>(p + 0x084,
kernel_state_->process_info_block_address());
xe::store_and_swap<uint8_t>(p + 0x08B, 1);
// D4 = APC
// FC = semaphore (ptr, 0, 2)