Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Aug 2022 00:41:52 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e59d99e6e698 - stable/13 - amd64: update comment for casueword/casueword32, mentioning return value 1
Message-ID:  <202208280041.27S0fqQg009757@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=e59d99e6e698f08ef79eb452daf209b53212a633

commit e59d99e6e698f08ef79eb452daf209b53212a633
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-08-25 23:41:48 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-08-28 00:41:23 +0000

    amd64: update comment for casueword/casueword32, mentioning return value 1
    
    (cherry picked from commit c1a0ab5ec525c4cb2dee4aad72d27f195e21450c)
---
 sys/amd64/amd64/support.S | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sys/amd64/amd64/support.S b/sys/amd64/amd64/support.S
index 09e73800bddd..a8a3f1869e22 100644
--- a/sys/amd64/amd64/support.S
+++ b/sys/amd64/amd64/support.S
@@ -922,7 +922,8 @@ copy_fault:
 
 /*
  * casueword32.  Compare and set user integer.  Returns -1 on fault,
- *        0 if access was successful.  Old value is written to *oldp.
+ *        0 if access was successful, and 1 when comparision failed.
+ *        Old value is written to *oldp.
  *        dst = %rdi, old = %esi, oldp = %rdx, new = %ecx
  */
 ENTRY(casueword32_nosmap)
@@ -1001,7 +1002,8 @@ END(casueword32_smap)
 
 /*
  * casueword.  Compare and set user long.  Returns -1 on fault,
- *        0 if access was successful.  Old value is written to *oldp.
+ *        0 if access was successful, and 1 when comparision failed.
+ *        Old value is written to *oldp.
  *        dst = %rdi, old = %rsi, oldp = %rdx, new = %rcx
  */
 ENTRY(casueword_nosmap)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208280041.27S0fqQg009757>