Start of DPCs. Queuing them, but not yet dispatching.

This commit is contained in:
Ben Vanik
2014-01-11 21:40:23 -08:00
parent 27d4938cc2
commit c50fbafbd9
8 changed files with 318 additions and 0 deletions

View File

@@ -21,6 +21,7 @@
XEDECLARECLASS1(xe, Emulator);
XEDECLARECLASS2(xe, cpu, Processor);
XEDECLARECLASS2(xe, kernel, Dispatcher);
XEDECLARECLASS2(xe, kernel, XModule);
XEDECLARECLASS2(xe, kernel, XThread);
XEDECLARECLASS2(xe, kernel, XUserModule);
@@ -43,6 +44,8 @@ public:
cpu::Processor* processor() const { return processor_; }
fs::FileSystem* file_system() const { return file_system_; }
Dispatcher* dispatcher() const { return dispatcher_; }
ObjectTable* object_table() const { return object_table_; }
XModule* GetModule(const char* name);
@@ -59,6 +62,8 @@ private:
cpu::Processor* processor_;
fs::FileSystem* file_system_;
Dispatcher* dispatcher_;
ObjectTable* object_table_;
xe_mutex_t* object_mutex_;
std::unordered_map<uint32_t, XThread*> threads_by_id_;