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.
This commit is contained in:
Lioncash 2018-12-19 21:43:10 -05:00
parent 55e371a3a1
commit 1239d16371
2 changed files with 11 additions and 1 deletions

View file

@ -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;
}