mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-24 22:02:39 +02:00
Added svcCloseHandle, svcWaitSynchronization, and svcAcceptSession.
This commit is contained in:
parent
5f2b139174
commit
346324cc5b
@ -18,8 +18,11 @@ static inline void* armGetTls(void) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
Result svcCloseHandle(Handle handle);
|
||||
Result svcWaitSynchronization(s32* index, const Handle* handles, s32 handleCount, u64 timeout);
|
||||
Result svcConnectToNamedPort(Handle* session, const char* name);
|
||||
Result svcBreak(u32 BreakReason, u64 inval1, u64 inval2);
|
||||
Result svcAcceptSession(Handle *session_handle, Handle port_handle);
|
||||
Result svcReplyAndReceive(s32* index, const Handle* handles, s32 handleCount, Handle replyTarget, u64 timeout);
|
||||
Result svcManageNamedPort(Handle* portServer, const char* name, s32 maxSessions);
|
||||
|
||||
|
@ -11,6 +11,19 @@
|
||||
.cfi_endproc
|
||||
.endm
|
||||
|
||||
SVC_BEGIN svcCloseHandle
|
||||
svc 0x16
|
||||
ret
|
||||
SVC_END
|
||||
|
||||
SVC_BEGIN svcWaitSynchronization
|
||||
str x0, [sp, #-16]!
|
||||
svc 0x18
|
||||
ldr x2, [sp], #16
|
||||
str w1, [x2]
|
||||
ret
|
||||
SVC_END
|
||||
|
||||
SVC_BEGIN svcConnectToNamedPort
|
||||
str x0, [sp, #-16]!
|
||||
svc 0x1f
|
||||
@ -24,6 +37,14 @@ SVC_BEGIN svcBreak
|
||||
ret
|
||||
SVC_END
|
||||
|
||||
SVC_BEGIN svcAcceptSession
|
||||
str x0, [sp, #-16]!
|
||||
svc 0x41
|
||||
ldr x2, [sp], #16
|
||||
str w1, [x2]
|
||||
ret
|
||||
SVC_END
|
||||
|
||||
SVC_BEGIN svcReplyAndReceive
|
||||
str x0, [sp, #-16]!
|
||||
svc 0x43
|
||||
|
Loading…
Reference in New Issue
Block a user