moved xsemaphore to xthread.d
add typed guest pointer template add X_KSPINLOCK, rework spinlock functions. rework irql related code, use irql on pcr instead of on XThread add guest linked list helper functions renamed ProcessInfoBlock to X_KPROCESS assigned names to many kernel structure fields
This commit is contained in:
committed by
Radosław Gliński
parent
32f7241526
commit
b5ddd30572
@@ -20,7 +20,7 @@
|
||||
#include "xenia/base/memory.h"
|
||||
#include "xenia/base/mutex.h"
|
||||
#include "xenia/cpu/mmio_handler.h"
|
||||
|
||||
#include "xenia/guest_pointers.h"
|
||||
namespace xe {
|
||||
class ByteStream;
|
||||
} // namespace xe
|
||||
@@ -369,6 +369,10 @@ class Memory {
|
||||
|
||||
#endif
|
||||
}
|
||||
template <typename T>
|
||||
inline T* TranslateVirtual(TypedGuestPointer<T> guest_address) {
|
||||
return TranslateVirtual<T*>(guest_address.m_ptr);
|
||||
}
|
||||
|
||||
// Base address of physical memory in the host address space.
|
||||
// This is often something like 0x200000000.
|
||||
|
||||
Reference in New Issue
Block a user