1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-22 11:17:19 +00:00

Change the addu here to daddu.

addu paranoina prodded by: jmallet@
This commit is contained in:
Warner Losh 2009-07-06 02:22:06 +00:00
parent 3eecc82e89
commit 54d05c03e5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/mips/; revision=195390

View File

@ -137,7 +137,7 @@ atomic_subtract_32(__volatile uint32_t *p, uint32_t v)
"1:\tll %0, %3\n\t" /* load old value */
"subu %0, %2\n\t" /* calculate new value */
"sc %0, %1\n\t" /* attempt to store */
"beqz %0, 1b\n\t" /* spin if failed */
"beqz %0, 1b\n\t" /* spin if failed */
: "=&r" (temp), "=m" (*p)
: "r" (v), "m" (*p)
: "memory");
@ -492,7 +492,7 @@ atomic_fetchadd_64(__volatile uint64_t *p, uint64_t v)
__asm __volatile (
"1:\n\t"
"lld %0, %1\n\t" /* load old value */
"addu %2, %3, %0\n\t" /* calculate new value */
"daddu %2, %3, %0\n\t" /* calculate new value */
"scd %2, %1\n\t" /* attempt to store */
"beqz %2, 1b\n\t" /* spin if failed */
: "=&r" (value), "=m" (*p), "=&r" (temp)