mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
Merge branch 'master' of https://gitlab.com/yellows8/libnx
This commit is contained in:
commit
10b41de71e
@ -18,6 +18,7 @@ static inline void* armGetTls(void) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
Result svcQueryMemory(u32 *meminfo_ptr, u32 *pageinfo, u64 addr);
|
||||
Result svcCloseHandle(Handle handle);
|
||||
Result svcWaitSynchronization(s32* index, const Handle* handles, s32 handleCount, u64 timeout);
|
||||
Result svcConnectToNamedPort(Handle* session, const char* name);
|
||||
|
@ -11,6 +11,14 @@
|
||||
.cfi_endproc
|
||||
.endm
|
||||
|
||||
SVC_BEGIN svcQueryMemory
|
||||
str x1, [sp, #-16]!
|
||||
svc 0x6
|
||||
ldr x2, [sp], #16
|
||||
str w1, [x2]
|
||||
ret
|
||||
SVC_END
|
||||
|
||||
SVC_BEGIN svcCloseHandle
|
||||
svc 0x16
|
||||
ret
|
||||
|
Loading…
Reference in New Issue
Block a user