Add svcCreateSessionToPort
This commit is contained in:
parent
8eb2eb2d3e
commit
85831944e0
@ -893,6 +893,13 @@ Result svcArbitrateAddress(Handle arbiter, u32 addr, ArbitrationType type, s32 v
|
|||||||
*/
|
*/
|
||||||
Result svcSendSyncRequest(Handle session);
|
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.
|
* @brief Creates a linked pair of session endpoints.
|
||||||
* @param[out] serverSession Pointer to output the created server endpoint handle to.
|
* @param[out] serverSession Pointer to output the created server endpoint handle to.
|
||||||
|
@ -416,6 +416,14 @@ SVC_BEGIN svcCreatePort
|
|||||||
bx lr
|
bx lr
|
||||||
SVC_END
|
SVC_END
|
||||||
|
|
||||||
|
SVC_BEGIN svcCreateSessionToPort
|
||||||
|
push {r0}
|
||||||
|
svc 0x48
|
||||||
|
pop {r2}
|
||||||
|
str r1, [r2]
|
||||||
|
bx lr
|
||||||
|
SVC_END
|
||||||
|
|
||||||
SVC_BEGIN svcCreateSession
|
SVC_BEGIN svcCreateSession
|
||||||
push {r0, r1}
|
push {r0, r1}
|
||||||
svc 0x49
|
svc 0x49
|
||||||
|
Loading…
Reference in New Issue
Block a user