mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
svc: QueryIoMapping ABI change in 10.x
This commit is contained in:
parent
02e4aad9dc
commit
cb7c1f87a8
@ -1034,8 +1034,18 @@ Result svcQueryPhysicalAddress(PhysicalMemoryInfo *out, u64 virtaddr);
|
||||
* @return Result code.
|
||||
* @note Syscall number 0x55.
|
||||
* @warning This is a privileged syscall. Use \ref envIsSyscallHinted to check if it is available.
|
||||
* @warning Only exists on [10.0.0+]. For older versions use \ref svcLegacyQueryIoMapping.
|
||||
*/
|
||||
Result svcQueryIoMapping(u64* virtaddr, u64 physaddr, u64 size);
|
||||
Result svcQueryIoMapping(u64* virtaddr, u64* size, u64 physaddr);
|
||||
|
||||
/**
|
||||
* @brief Returns a virtual address mapped to a given IO range.
|
||||
* @return Result code.
|
||||
* @note Syscall number 0x55.
|
||||
* @warning This is a privileged syscall. Use \ref envIsSyscallHinted to check if it is available.
|
||||
* @warning Only exists on [1.0.0-9.2.0]. For newer versions use \ref svcQueryIoMapping.
|
||||
*/
|
||||
Result svcLegacyQueryIoMapping(u64* virtaddr, u64 physaddr, u64 size);
|
||||
|
||||
///@}
|
||||
|
||||
|
@ -481,6 +481,15 @@ SVC_BEGIN svcQueryPhysicalAddress
|
||||
SVC_END
|
||||
|
||||
SVC_BEGIN svcQueryIoMapping
|
||||
stp x0, x1, [sp, #-16]!
|
||||
svc 0x55
|
||||
ldp x3, x4, [sp], #16
|
||||
str x1, [x3]
|
||||
str x2, [x4]
|
||||
ret
|
||||
SVC_END
|
||||
|
||||
SVC_BEGIN svcLegacyQueryIoMapping
|
||||
str x0, [sp, #-16]!
|
||||
svc 0x55
|
||||
ldr x2, [sp], #16
|
||||
|
Loading…
Reference in New Issue
Block a user