mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-10-30 23:49:01 -05:00 
			
		
		
		
	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:
		| @@ -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; | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -155,6 +155,11 @@ public: | ||||
|         return program_type; | ||||
|     } | ||||
|  | ||||
|     /// Gets the number of total allowable handles for the process' handle table. | ||||
|     u32 GetHandleTableSize() const { | ||||
|         return handle_table_size; | ||||
|     } | ||||
|  | ||||
|     /// Gets the kernel version value. | ||||
|     u32 GetKernelVersion() const { | ||||
|         return kernel_version; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Lioncash
					Lioncash