forked from eden-emu/eden
		
	kernel/process: Introduce process capability parsing skeleton
We've had the old kernel capability parser from Citra, however, this is unused code and doesn't actually map to how the kernel on the Switch does it. This introduces the basic functional skeleton for parsing process capabilities.
This commit is contained in:
		
							parent
							
								
									0a9a9e9b80
								
							
						
					
					
						commit
						c5c8b2ffb9
					
				
					 5 changed files with 468 additions and 3 deletions
				
			
		|  | @ -43,6 +43,9 @@ enum KernelHandle : Handle { | |||
|  */ | ||||
| class HandleTable final : NonCopyable { | ||||
| public: | ||||
|     /// This is the maximum limit of handles allowed per process in Horizon
 | ||||
|     static constexpr std::size_t MAX_COUNT = 1024; | ||||
| 
 | ||||
|     HandleTable(); | ||||
|     ~HandleTable(); | ||||
| 
 | ||||
|  | @ -91,9 +94,6 @@ public: | |||
|     void Clear(); | ||||
| 
 | ||||
| private: | ||||
|     /// This is the maximum limit of handles allowed per process in Horizon
 | ||||
|     static constexpr std::size_t MAX_COUNT = 1024; | ||||
| 
 | ||||
|     /// Stores the Object referenced by the handle or null if the slot is empty.
 | ||||
|     std::array<SharedPtr<Object>, MAX_COUNT> objects; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lioncash
						Lioncash