summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-rw-r--r--src/core/hle/kernel/kernel.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index 3828efbea..9860479ac 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -16,6 +16,11 @@
16typedef u32 Handle; 16typedef u32 Handle;
17typedef s32 Result; 17typedef s32 Result;
18 18
19// TODO: It would be nice to eventually replace these with strong types that prevent accidental
20// conversion between each other.
21typedef u32 VAddr; ///< Represents a pointer in the userspace virtual address space.
22typedef u32 PAddr; ///< Represents a pointer in the ARM11 physical address space.
23
19const Handle INVALID_HANDLE = 0; 24const Handle INVALID_HANDLE = 0;
20 25
21namespace Kernel { 26namespace Kernel {
@@ -26,7 +31,8 @@ class Thread;
26const ResultCode ERR_OUT_OF_HANDLES(ErrorDescription::OutOfMemory, ErrorModule::Kernel, 31const ResultCode ERR_OUT_OF_HANDLES(ErrorDescription::OutOfMemory, ErrorModule::Kernel,
27 ErrorSummary::OutOfResource, ErrorLevel::Temporary); 32 ErrorSummary::OutOfResource, ErrorLevel::Temporary);
28// TOOD: Verify code 33// TOOD: Verify code
29const ResultCode ERR_INVALID_HANDLE = InvalidHandle(ErrorModule::Kernel); 34const ResultCode ERR_INVALID_HANDLE(ErrorDescription::InvalidHandle, ErrorModule::Kernel,
35 ErrorSummary::InvalidArgument, ErrorLevel::Permanent);
30 36
31enum KernelHandle : Handle { 37enum KernelHandle : Handle {
32 CurrentThread = 0xFFFF8000, 38 CurrentThread = 0xFFFF8000,