git: c1a0ab5ec525 - main - amd64: update comment for casueword/casueword32, mentioning return value 1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 25 Aug 2022 23:59:30 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=c1a0ab5ec525c4cb2dee4aad72d27f195e21450c
commit c1a0ab5ec525c4cb2dee4aad72d27f195e21450c
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-08-25 23:41:48 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-08-25 23:41:48 +0000
amd64: update comment for casueword/casueword32, mentioning return value 1
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
---
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 8e284c6f6a9e..223a9cc7f444 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)