mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 13:02:38 +02:00
Add svcGetResourceLimitPeakValue [11.0.0+]
This commit is contained in:
parent
8ce231e7c9
commit
74b295827f
@ -815,6 +815,19 @@ void svcSynchronizePreemptionState(void);
|
|||||||
|
|
||||||
///@}
|
///@}
|
||||||
|
|
||||||
|
///@name Resource Limit Management
|
||||||
|
///@{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Gets the peak value a LimitableResource has had, for a Resource Limit handle. [11.0.0+]
|
||||||
|
* @return Result code.
|
||||||
|
* @note Syscall number 0x37.
|
||||||
|
* @warning This is a privileged syscall. Use \ref envIsSyscallHinted to check if it is available.
|
||||||
|
*/
|
||||||
|
Result svcGetResourceLimitPeakValue(s64 *out, Handle reslimit_h, LimitableResource which);
|
||||||
|
|
||||||
|
///@}
|
||||||
|
|
||||||
///@name Debugging
|
///@name Debugging
|
||||||
///@{
|
///@{
|
||||||
/**
|
/**
|
||||||
|
@ -337,6 +337,14 @@ SVC_BEGIN svcSynchronizePreemptionState
|
|||||||
ret
|
ret
|
||||||
SVC_END
|
SVC_END
|
||||||
|
|
||||||
|
SVC_BEGIN svcGetResourceLimitPeakValue
|
||||||
|
str x0, [sp, #-16]!
|
||||||
|
svc 0x37
|
||||||
|
ldr x2, [sp], #16
|
||||||
|
str x1, [x2]
|
||||||
|
ret
|
||||||
|
SVC_END
|
||||||
|
|
||||||
SVC_BEGIN svcDumpInfo
|
SVC_BEGIN svcDumpInfo
|
||||||
svc 0x3C
|
svc 0x3C
|
||||||
ret
|
ret
|
||||||
|
Loading…
Reference in New Issue
Block a user