Add svcGetResourceLimitPeakValue [11.0.0+]

This commit is contained in:
fincs 2020-12-01 13:49:15 +01:00
parent 8ce231e7c9
commit 74b295827f
No known key found for this signature in database
GPG Key ID: 62C7609ADA219C60
2 changed files with 21 additions and 0 deletions

View File

@ -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
///@{
/**

View File

@ -337,6 +337,14 @@ SVC_BEGIN svcSynchronizePreemptionState
ret
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 0x3C
ret