diff options
| author | 2015-01-30 15:00:17 +0100 | |
|---|---|---|
| committer | 2015-01-30 15:00:17 +0100 | |
| commit | 28702cbfeb1fe21109f8b1efa189785594319b78 (patch) | |
| tree | 64e4b1ec43b7699fe1a6ab1be1c688b6d63c0d75 /src/core/hle/kernel/kernel.h | |
| parent | Merge pull request #412 from purpasmart96/svc_table_cleanup (diff) | |
| parent | Kernel: Mark all appropriate kernel objects as "final" (diff) | |
| download | yuzu-28702cbfeb1fe21109f8b1efa189785594319b78.tar.gz yuzu-28702cbfeb1fe21109f8b1efa189785594319b78.tar.xz yuzu-28702cbfeb1fe21109f8b1efa189785594319b78.zip | |
Merge pull request #503 from yuriks/kernel-lifetime4
Kernel Lifetime Reform Pt. 4
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
| -rw-r--r-- | src/core/hle/kernel/kernel.h | 8 |
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 @@ | |||
| 16 | typedef u32 Handle; | 16 | typedef u32 Handle; |
| 17 | typedef s32 Result; | 17 | typedef 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. | ||
| 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 | |||
| 19 | const Handle INVALID_HANDLE = 0; | 24 | const Handle INVALID_HANDLE = 0; |
| 20 | 25 | ||
| 21 | namespace Kernel { | 26 | namespace Kernel { |
| @@ -26,7 +31,8 @@ class Thread; | |||
| 26 | const ResultCode ERR_OUT_OF_HANDLES(ErrorDescription::OutOfMemory, ErrorModule::Kernel, | 31 | const 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 |
| 29 | const ResultCode ERR_INVALID_HANDLE = InvalidHandle(ErrorModule::Kernel); | 34 | const ResultCode ERR_INVALID_HANDLE(ErrorDescription::InvalidHandle, ErrorModule::Kernel, |
| 35 | ErrorSummary::InvalidArgument, ErrorLevel::Permanent); | ||
| 30 | 36 | ||
| 31 | enum KernelHandle : Handle { | 37 | enum KernelHandle : Handle { |
| 32 | CurrentThread = 0xFFFF8000, | 38 | CurrentThread = 0xFFFF8000, |