mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	Kernel/SharedMemory: Properly implemented shared memory support.
Applications can request the kernel to allocate a piece of the linear heap for them when creating a shared memory object. Shared memory areas are now properly mapped into the target processes when calling svcMapMemoryBlock. Removed the APT Shared Font hack as it is no longer needed.
This commit is contained in:
		
							parent
							
								
									42a50da76b
								
							
						
					
					
						commit
						1bd0cf542f
					
				
					 10 changed files with 147 additions and 118 deletions
				
			
		| 
						 | 
				
			
			@ -94,8 +94,9 @@ void Init() {
 | 
			
		|||
    AddService(new IR_User_Interface);
 | 
			
		||||
 | 
			
		||||
    using Kernel::MemoryPermission;
 | 
			
		||||
    shared_memory = SharedMemory::Create(0x1000, Kernel::MemoryPermission::ReadWrite,
 | 
			
		||||
                                         Kernel::MemoryPermission::ReadWrite, "IR:SharedMemory");
 | 
			
		||||
    shared_memory = SharedMemory::Create(nullptr, 0x1000,
 | 
			
		||||
                                         Kernel::MemoryPermission::ReadWrite, Kernel::MemoryPermission::ReadWrite,
 | 
			
		||||
                                         0, Kernel::MemoryRegion::BASE, "IR:SharedMemory");
 | 
			
		||||
    transfer_shared_memory = nullptr;
 | 
			
		||||
 | 
			
		||||
    // Create event handle(s)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue