aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/process_capability.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-12-19 21:43:10 -0500
committerLioncash <mathew1800@gmail.com>2018-12-21 07:05:34 -0500
commit1239d163713992b80757bf6b73f7de10a54e12a1 (patch)
tree3fafb8ccaccb180d3ff3f9e4800babc4c02665b2 /src/core/hle/kernel/process_capability.cpp
parent55e371a3a1ae14faae27e1c666e7c1311ad38b0e (diff)
kernel/process_capability: Handle handle table capability flags
This just specifies the handle table size. There's also a section of reserved bits that are checked against.
Diffstat (limited to 'src/core/hle/kernel/process_capability.cpp')
-rw-r--r--src/core/hle/kernel/process_capability.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/hle/kernel/process_capability.cpp b/src/core/hle/kernel/process_capability.cpp
index fb4467793d..7ee0ad9cc3 100644
--- a/src/core/hle/kernel/process_capability.cpp
+++ b/src/core/hle/kernel/process_capability.cpp
@@ -332,7 +332,12 @@ ResultCode ProcessCapabilities::HandleKernelVersionFlags(u32 flags) {
}
ResultCode ProcessCapabilities::HandleHandleTableFlags(u32 flags) {
- // TODO: Implement
+ const u32 reserved = flags >> 26;
+ if (reserved != 0) {
+ return ERR_RESERVED_VALUE;
+ }
+
+ handle_table_size = (flags >> 16) & 0x3FF;
return RESULT_SUCCESS;
}