Kernel/IPC: Implement StaticBuffer translation for HLE services that use the HLERequestContext architecture.
The real kernel requires services to set up their static buffer targets ahead of time. This implementation does not require that and will simply create the storage for the buffers as they are processed in the incoming IPC request. Static buffers are kept in an unordered_map keyed by their buffer id, and are written into the already-setup area of the request thread when responding an IPC request. This fixes a regression (crash) introduced in #2992. This PR introduces more warnings due to the [[deprecated]] attribute being added to void PushStaticBuffer(VAddr buffer_vaddr, size_t size, u8 buffer_id); and VAddr PopStaticBuffer(size_t* data_size);
This commit is contained in:
parent
4fc0448093
commit
c9c1ba0952
10 changed files with 113 additions and 40 deletions
|
@ -72,7 +72,7 @@ static void OpenFile(Service::Interface* self) {
|
|||
FileSys::Mode mode;
|
||||
mode.hex = rp.Pop<u32>();
|
||||
u32 attributes = rp.Pop<u32>(); // TODO(Link Mauve): do something with those attributes.
|
||||
VAddr filename_ptr = rp.PopStaticBuffer();
|
||||
VAddr filename_ptr = rp.PopStaticBuffer(nullptr);
|
||||
FileSys::Path file_path(filename_type, filename_size, filename_ptr);
|
||||
|
||||
LOG_DEBUG(Service_FS, "path=%s, mode=%u attrs=%u", file_path.DebugStr().c_str(), mode.hex,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue