Implement svcCreatePort.

This commit is contained in:
Michael Scire 2018-04-21 23:50:16 -06:00
parent 07759f38d9
commit d3fda20173
2 changed files with 19 additions and 0 deletions

View File

@ -673,6 +673,14 @@ Result svcWriteDebugProcessMemory(Handle debug, void* buffer, u64 addr, u64 size
///@name Inter-process communication (IPC)
///@{
/**
* @brief Creates a port.
* @return Result code.
* @note Syscall number 0x70.
* @warning This is a privileged syscall. Use \ref envIsSyscallHinted to check if it is available.
*/
Result svcCreatePort(Handle* portServer, Handle *portClient, s32 max_sessions, bool is_light, const char* name);
/**
* @brief Manages a named port.

View File

@ -345,6 +345,17 @@ SVC_BEGIN svcWriteDebugProcessMemory
ret
SVC_END
SVC_BEGIN svcCreatePort
stp x0, x1, [sp, #-16]!
svc 0x70
ldr x3, [sp]
str w1, [x3]
ldr x3, [sp, #8]
str w2, [x3]
add sp, sp, #16
ret
SVC_END
SVC_BEGIN svcManageNamedPort
str x0, [sp, #-16]!
svc 0x71