From 81bed00b5b3ede3b1e6a857ca9c5064a82fca020 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 9 Oct 2024 11:34:47 -0700 Subject: [PATCH] svc: update WaitForAddress --- nx/include/switch/kernel/svc.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nx/include/switch/kernel/svc.h b/nx/include/switch/kernel/svc.h index b5ca1c1b..220fcf63 100644 --- a/nx/include/switch/kernel/svc.h +++ b/nx/include/switch/kernel/svc.h @@ -262,9 +262,10 @@ typedef enum { /// WaitForAddress behaviors. typedef enum { - ArbitrationType_WaitIfLessThan = 0, ///< Wait if the value is less than argument. - ArbitrationType_DecrementAndWaitIfLessThan = 1, ///< Decrement the value and wait if it is less than argument. - ArbitrationType_WaitIfEqual = 2, ///< Wait if the value is equal to argument. + ArbitrationType_WaitIfLessThan = 0, ///< Wait if the 32-bit value is less than argument. + ArbitrationType_DecrementAndWaitIfLessThan = 1, ///< Decrement the 32-bit value and wait if it is less than argument. + ArbitrationType_WaitIfEqual = 2, ///< Wait if the 32-bit value is equal to argument. + ArbitrationType_WaitIfEqual64 = 2, ///< [19.0.0+] Wait if the 64-bit value is equal to argument. } ArbitrationType; /// Context of a scheduled thread. @@ -809,7 +810,7 @@ Result svcGetThreadContext3(ThreadContext* ctx, Handle thread); * @return Result code. * @note Syscall number 0x34. */ -Result svcWaitForAddress(void *address, u32 arb_type, s32 value, s64 timeout); +Result svcWaitForAddress(void *address, u32 arb_type, s64 value, s64 timeout); /** * @brief Signals (and updates) an address depending on type and value. [4.0.0+]