diff options
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/hle.h | 7 | ||||
| -rw-r--r-- | src/core/hle/kernel/kernel.h | 11 |
2 files changed, 8 insertions, 10 deletions
diff --git a/src/core/hle/hle.h b/src/core/hle/hle.h index 23de1aab7..e0b97797c 100644 --- a/src/core/hle/hle.h +++ b/src/core/hle/hle.h | |||
| @@ -4,6 +4,13 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include "common/common_types.h" | ||
| 8 | |||
| 9 | typedef u32 Handle; | ||
| 10 | typedef s32 Result; | ||
| 11 | |||
| 12 | const Handle INVALID_HANDLE = 0; | ||
| 13 | |||
| 7 | namespace HLE { | 14 | namespace HLE { |
| 8 | 15 | ||
| 9 | extern bool g_reschedule; ///< If true, immediately reschedules the CPU to a new thread | 16 | extern bool g_reschedule; ///< If true, immediately reschedules the CPU to a new thread |
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index ab06fa025..80a09cadc 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h | |||
| @@ -11,18 +11,9 @@ | |||
| 11 | #include <vector> | 11 | #include <vector> |
| 12 | 12 | ||
| 13 | #include "common/common.h" | 13 | #include "common/common.h" |
| 14 | #include "core/hle/hle.h" | ||
| 14 | #include "core/hle/result.h" | 15 | #include "core/hle/result.h" |
| 15 | 16 | ||
| 16 | typedef u32 Handle; | ||
| 17 | typedef s32 Result; | ||
| 18 | |||
| 19 | // TODO: It would be nice to eventually replace these with strong types that prevent accidental | ||
| 20 | // conversion between each other. | ||
| 21 | typedef u32 VAddr; ///< Represents a pointer in the userspace virtual address space. | ||
| 22 | typedef u32 PAddr; ///< Represents a pointer in the ARM11 physical address space. | ||
| 23 | |||
| 24 | const Handle INVALID_HANDLE = 0; | ||
| 25 | |||
| 26 | namespace Kernel { | 17 | namespace Kernel { |
| 27 | 18 | ||
| 28 | class Thread; | 19 | class Thread; |