Skip to content

Commit 1778e5b

Browse files
committed
atomic/sparcv9: fix a typo in the comment, no code change
1 parent c4c04f6 commit 1778e5b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

opal/include/opal/sys/sparcv9/atomic.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* Copyright (c) 2004-2005 The Regents of the University of California.
1111
* All rights reserved.
1212
* Copyright (c) 2007 Sun Microsystems, Inc. All rights reserverd.
13+
* Copyright (c) 2016 Research Organization for Information Science
14+
* and Technology (RIST). All rights reserved.
1315
* $COPYRIGHT$
1416
*
1517
* Additional copyrights may follow
@@ -85,7 +87,7 @@ static inline int opal_atomic_cmpset_32( volatile int32_t *addr,
8587
{
8688
/* casa [reg(rs1)] %asi, reg(rs2), reg(rd)
8789
*
88-
* if (*(reg(rs1)) == reg(rs1) )
90+
* if (*(reg(rs1)) == reg(rs2) )
8991
* swap reg(rd), *(reg(rs1))
9092
* else
9193
* reg(rd) = *(reg(rs1))

0 commit comments

Comments
 (0)