Add svcCreateSessionToPort

This commit is contained in:
Yuri Kunde Schlesner 2017-06-23 00:07:23 -07:00
parent 8eb2eb2d3e
commit 85831944e0
2 changed files with 15 additions and 0 deletions

View File

@ -893,6 +893,13 @@ Result svcArbitrateAddress(Handle arbiter, u32 addr, ArbitrationType type, s32 v
*/
Result svcSendSyncRequest(Handle session);
/**
* @brief Connects to a port via a handle.
* @param[out] clientSession Pointer to output the client session handle to.
* @param clientPort Port client endpoint to connect to.
*/
Result svcCreateSessionToPort(Handle* clientSession, Handle clientPort);
/**
* @brief Creates a linked pair of session endpoints.
* @param[out] serverSession Pointer to output the created server endpoint handle to.

View File

@ -416,6 +416,14 @@ SVC_BEGIN svcCreatePort
bx lr
SVC_END
SVC_BEGIN svcCreateSessionToPort
push {r0}
svc 0x48
pop {r2}
str r1, [r2]
bx lr
SVC_END
SVC_BEGIN svcCreateSession
push {r0, r1}
svc 0x49