Interrupts fire on the right 'thread', ringbuffer work,

This commit is contained in:
Ben Vanik
2013-10-19 11:50:01 -07:00
parent 6db8c6c961
commit 90bc6ad1a8
10 changed files with 145 additions and 48 deletions

View File

@@ -29,9 +29,8 @@ public:
uint32_t thread_id);
~ThreadState();
uint32_t thread_id() const;
xe_ppc_state_t* ppc_state();
uint32_t thread_id() const { return thread_id_; }
xe_ppc_state_t* ppc_state() const { return ppc_state_; }
private:
uint32_t stack_size_;
@@ -42,7 +41,8 @@ private:
uint32_t thread_state_address_;
uint32_t thread_id_;
xe_ppc_state_t ppc_state_;
// NOTE: must be 64b aligned for SSE ops.
xe_ppc_state_t* ppc_state_;
};