Page MenuHomeFreeBSD

D27897.diff
No OneTemporary

D27897.diff

diff --git a/sys/arm/include/atomic-v6.h b/sys/arm/include/atomic-v6.h
--- a/sys/arm/include/atomic-v6.h
+++ b/sys/arm/include/atomic-v6.h
@@ -913,9 +913,8 @@
* Assume little-endian,
* atomic_testandclear_32() uses only last 5 bits of v
*/
- if (v >= 32) {
+ if ((v & 0x20) != 0)
p32++;
- }
return (atomic_testandclear_32(p32, v));
}
@@ -973,9 +972,8 @@
* Assume little-endian,
* atomic_testandset_32() uses only last 5 bits of v
*/
- if (v >= 32) {
+ if ((v & 0x20) != 0)
p32++;
- }
return (atomic_testandset_32(p32, v));
}

File Metadata

Mime Type
text/plain
Expires
Sat, Aug 22, 6:05 AM (3 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37066946
Default Alt Text
D27897.diff (560 B)

Event Timeline