Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libc/arch/aarch64/atomic One more s/pte/ptr/
details: https://anonhg.NetBSD.org/src/rev/ec780cd8e7f1
branches: trunk
changeset: 984405:ec780cd8e7f1
user: skrll <skrll%NetBSD.org@localhost>
date: Tue Jul 06 08:31:41 2021 +0000
description:
One more s/pte/ptr/
diffstat:
common/lib/libc/arch/aarch64/atomic/atomic_nand_16.S | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 324de8b86134 -r ec780cd8e7f1 common/lib/libc/arch/aarch64/atomic/atomic_nand_16.S
--- a/common/lib/libc/arch/aarch64/atomic/atomic_nand_16.S Tue Jul 06 06:38:29 2021 +0000
+++ b/common/lib/libc/arch/aarch64/atomic/atomic_nand_16.S Tue Jul 06 08:31:41 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_nand_16.S,v 1.3 2021/07/04 06:55:47 skrll Exp $ */
+/* $NetBSD: atomic_nand_16.S,v 1.4 2021/07/06 08:31:41 skrll Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
mov x4, x0
1: ldxrh w0, [x4] /* load old value (*ptr) */
and w3, w0, w1 /* w3 = (*ptr & value) */
- mvn w3, w3 /* w3 = ~(*pte & value) */
+ mvn w3, w3 /* w3 = ~(*ptr & value) */
stxrh w2, w3, [x4] /* try to store */
cbnz w2, 2f /* succeed? no, try again */
ret /* return old value */
@@ -58,7 +58,7 @@
mov x4, x0 /* need r0 for return value */
1: ldxrh w0, [x4] /* load old value (*ptr) */
and w0, w0, w1 /* w0 = (*ptr & value) */
- mvn w0, w0 /* w0 = ~(*pte & value), return value */
+ mvn w0, w0 /* w0 = ~(*ptr & value), return value */
stxrh w2, w0, [x4] /* try to store */
cbnz w2, 2f /* succeed? no, try again? */
ret /* return new value */
Home |
Main Index |
Thread Index |
Old Index