diff options
| author | 2016-04-17 21:07:52 -0500 | |
|---|---|---|
| committer | 2016-05-12 20:00:32 -0500 | |
| commit | 1bd0cf542ff8db1cda572c4d92462643296af121 (patch) | |
| tree | 8004faa76770c076e2d84d51a64c6419f796a477 /src/core/hle/applets/swkbd.cpp | |
| parent | Kernel/SVC: Fixed the register order for svcCreateMemoryBlock. (diff) | |
| download | yuzu-1bd0cf542ff8db1cda572c4d92462643296af121.tar.gz yuzu-1bd0cf542ff8db1cda572c4d92462643296af121.tar.xz yuzu-1bd0cf542ff8db1cda572c4d92462643296af121.zip | |
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.
Diffstat (limited to 'src/core/hle/applets/swkbd.cpp')
| -rw-r--r-- | src/core/hle/applets/swkbd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/applets/swkbd.cpp b/src/core/hle/applets/swkbd.cpp index 87238aa1c..e0c134182 100644 --- a/src/core/hle/applets/swkbd.cpp +++ b/src/core/hle/applets/swkbd.cpp | |||
| @@ -40,8 +40,8 @@ ResultCode SoftwareKeyboard::ReceiveParameter(Service::APT::MessageParameter con | |||
| 40 | memcpy(&capture_info, parameter.data, sizeof(capture_info)); | 40 | memcpy(&capture_info, parameter.data, sizeof(capture_info)); |
| 41 | 41 | ||
| 42 | using Kernel::MemoryPermission; | 42 | using Kernel::MemoryPermission; |
| 43 | framebuffer_memory = Kernel::SharedMemory::Create(capture_info.size, MemoryPermission::ReadWrite, | 43 | framebuffer_memory = Kernel::SharedMemory::Create(nullptr, capture_info.size, MemoryPermission::ReadWrite, |
| 44 | MemoryPermission::ReadWrite, "SoftwareKeyboard Memory"); | 44 | MemoryPermission::ReadWrite, 0, Kernel::MemoryRegion::BASE, "SoftwareKeyboard Memory"); |
| 45 | 45 | ||
| 46 | // Send the response message with the newly created SharedMemory | 46 | // Send the response message with the newly created SharedMemory |
| 47 | Service::APT::MessageParameter result; | 47 | Service::APT::MessageParameter result; |