bunnei
479400acc8
hle_ipc: Remove GetPointer(..) usage with WriteToOutgoingCommandBuffer.
8 years ago
mailwl
dadb6c6e50
Add warning if Domain request has no domain message header
8 years ago
mailwl
2ba8b89864
Fix: change check for domain order and existance of domain message header
8 years ago
mailwl
e05f10cae8
IPC: add domain header to response if only it exists in request
8 years ago
mailwl
e86ec16ee7
Service/hid: stub some functions
8 years ago
bunnei
9bd160723a
hle_ipc: Remove const from WriteBuffer size.
8 years ago
bunnei
289e29163b
hle_ipc: Add GetReadBufferSize and check write buffer size.
8 years ago
bunnei
f0e350f3bb
hle_ipc: Add helper functions for reading and writing buffers.
8 years ago
bunnei
ac83b7c57f
hle_ipc: Add helper functions for reading and writing buffers.
8 years ago
bunnei
a3aadaea60
hle: Integrate Domain handling into ServerSession.
8 years ago
bunnei
4fabdf77d7
hle: Remove Domain and SyncObject kernel objects.
8 years ago
James Rowe
ea88c44eb8
Format: Run the new clang format on everything
8 years ago
River City Ransomware
39827d573a
Fixes some cast warnings, partial port of citra #3064 ( #106 )
* Fixes some cast warnings, partially fixes citra #3064
* Converted casts to uint32_t to u32
* Ran clang-format
8 years ago
gdkchan
90b697db30
Stub PopLaunchParameter and implement Buffer C Descriptors reading on hle_ipc ( #96 )
* Stub PopLaunchParameter and implement Buffer C Descriptors reading
* Address PR feedback
* Ensure we push a u64 not a size_t
* Fix formatting
8 years ago
bunnei
0d1c6f492e
hle_ipc: Clang format.
8 years ago
bunnei
ce1626b80e
ipc: Implement domain command CloseVirtualHandle.
8 years ago
bunnei
182548ec86
yuzu: Update license text to be consistent across project.
8 years ago
Subv
8923c80127
IPC: Corrected some definitions for the buffer C descriptor flags.
8 years ago
Subv
347ab620b5
IPC: Add functions to read the input move/copy objects from an IPC request.
8 years ago
Subv
eda468e4fb
IPC: Don't attempt to read the command buffer if it holds a Close request.
8 years ago
Subv
fd93b1e0ef
IPC Cleanup: Remove 3DS-specific code and translate copy, move and domain objects in IPC requests.
Popping objects from the buffer is still not implemented.
8 years ago
Subv
6a6013d4c3
IPC: Skip the entire u64 of the command id when receiving an IPC request.
Service code now doesn't have to deal with this.
8 years ago
Subv
d6a5e0b61b
IPC: Use the correct size when pushing raw data to the command buffer and fixed pushing domain objects.
Domain object ids are always stored immediately after the raw data.
8 years ago
bunnei
9d04a45a90
kernel: Fix implementation of ConvertSessionToDomain.
8 years ago
bunnei
a636b779e7
hle_ipc: Only copy necessary fields for outgoing command buffer.
8 years ago
bunnei
f599769c3c
hle_ipc: Parse out buffer X/A/B/B descriptors from incoming command buffer.
8 years ago
bunnei
be299c7636
hle: Implement ConvertSessionToDomain, various cleanups.
8 years ago
bunnei
2ea8867549
hle: Initial implementation of NX service framework and IPC.
8 years ago
Huw Pascoe
da1c8d1522
Fixed type conversion ambiguity
8 years ago
Yuri Kunde Schlesner
b3e13d653f
Kernel/IPC: Support translation of null handles
Missed this in my first implementation. Thanks to @wwylele for pointing
out that this was missing.
9 years ago
Yuri Kunde Schlesner
6382e341f8
Kernel/IPC: Make HLERequestContext usable from outside kernel
9 years ago
Yuri Kunde Schlesner
192a95390e
Kernel: Allow clearing request_objects to re-use buffer space
Reduces the necessary allocation to max(in_handles, out_handles) rather
than (in_handles + out_handles).
9 years ago
Yuri Kunde Schlesner
e639024013
Kernel: Basic support for IPC translation for HLE services
9 years ago
Yuri Kunde Schlesner
ccba9e903f
Kernel: Add methods in HLERequestContext abstracting handle creation
9 years ago
Yuri Kunde Schlesner
0a7f4f531f
Service: Add new ServiceFramework framework for writing HLE services
The old "Interface" class had a few problems such as using free
functions (Which didn't allow you to write the service handler as if it
were a regular class.) which weren't very extensible. (Only received one
parameter with a pointer to the Interface object.)
The new ServiceFramework aims to solve these problems by working with
member functions and passing a generic context struct as parameter. This
struct can be extended in the future without having to update all
existing service implementations.
9 years ago
Yuri Kunde Schlesner
8a35f3634e
Kernel: Add a dedicated SetHleHandler method to ServerPort/ServerSession
This allows attaching a HLE handle to a ServerPort at any point after it
is created, allowing port/session creation to be generic between HLE and
regular services.
9 years ago
Yuri Kunde Schlesner
41a3feea66
HLE: Move SessionRequestHandler from Service:: to Kernel::
Most of the code that works with this is or will be in the kernel, so
it's a more appropriate place for it to be.
9 years ago