Skip to content

Commit 3ec80bd

Browse files
authored
[ATOMICSABI64]: Alpha Draft of Atomics ABI (#256)
This is the Alpha draft of the C/C++ Atomics Application Binary Interface Standard for the Arm® 64-bit Architecture This document describes the C/C++ Atomics Application Binary Interface for the Arm 64-bit architecture. This document concerns the valid mappings from C/C++ Atomic Operations to sequences of A64 instructions. This document does not support Armv7. For matters concerning the memory model, please consult §B2 of the Arm Architecture Reference Manual. We focus only on a subset of the C11 atomic operations and their mapping to A64 instructions at the time of writing. More atomics will be added. Co-Authored by Wilco Dijkstra (@Wilco1).
1 parent 0e0a1c5 commit 3ec80bd

File tree

12 files changed

+1503
-0
lines changed

12 files changed

+1503
-0
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ document | owner | Github handle
109109
[Morello extensions to ELF for the Arm 64-bit Architecture](https://github.com/ARM-software/abi-aa/tree/master/aaelf64-morello) | Silviu Baranga | @sbaranga-arm
110110
[Morello Descriptor ABI for the Arm 64-bit Architecture](https://github.com/ARM-software/abi-aa/tree/master/descabi-morello) | Silviu Baranga | @sbaranga-arm
111111
[Memtag ABI Extension to ELF for the Arm 64-bit Architecture](https://github.com/ARM-software/abi-aa/tree/master/memtagabielf64) | Mitch Phillips | @hctim
112+
[C/C++ Atomics Application Binary Interface Standard for the Arm 64-bit Architecture](https://github.com/ARM-software/abi-aa/tree/master/atomicsabi64) | Luke Geeson | @lukeg101
112113

113114
3. Merging the change
114115

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ ELF for the Arm 64-bit Architecture | [aaelf64](a
7171
DWARF for the Arm 64-bit Architecture | [aadwarf64](aadwarf64/aadwarf64.rst) | [2020Q2](legacy-documents/aadwarf64/ihi0057_E/IHI0057_E_2020Q2_aadwarf64.pdf)
7272
C++ ABI for the Arm 64-bit Architecture | [cppabi64](cppabi64/cppabi64.rst) | [2020Q2](legacy-documents/cppabi64/ihi0059_E/IHI0059E_2020Q2_cppabi64.pdf)
7373
Vector Function ABI for the Arm 64-bit Architecture | [vfabia64](vfabia64/vfabia64.rst) | [2019Q2](legacy-documents/vfabia64/101129_1920/101129_1920_01_en.pdf)
74+
C/C++ Atomics ABI for the Arm 64-bit Architecture | [atomicsabi64](atomicsabi64/atomicsabi64.rst) | n/a
7475

7576

7677
### ABI for the Arm 64-bit Architecture with SVE support

atomicsabi64/Arm_logo_blue_RGB.svg

Lines changed: 15 additions & 0 deletions
Loading

atomicsabi64/CONTRIBUTIONS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Contributions to this project are licensed under an inbound=outbound
2+
model such that any such contributions are licensed by the contributor
3+
under the same terms as those in the LICENSE file.

atomicsabi64/LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
This work is licensed under the Creative Commons
2+
Attribution-ShareAlike 4.0 International License. To view a copy of
3+
this license, visit http://creativecommons.org/licenses/by-sa/4.0/ or
4+
send a letter to Creative Commons, PO Box 1866, Mountain View, CA
5+
94042, USA.
6+
7+
Grant of Patent License. Subject to the terms and conditions of this
8+
license (both the Public License and this Patent License), each
9+
Licensor hereby grants to You a perpetual, worldwide, non-exclusive,
10+
no-charge, royalty-free, irrevocable (except as stated in this
11+
section) patent license to make, have made, use, offer to sell, sell,
12+
import, and otherwise transfer the Licensed Material, where such
13+
license applies only to those patent claims licensable by such
14+
Licensor that are necessarily infringed by their contribution(s) alone
15+
or by combination of their contribution(s) with the Licensed Material
16+
to which such contribution(s) was submitted. If You institute patent
17+
litigation against any entity (including a cross-claim or counterclaim
18+
in a lawsuit) alleging that the Licensed Material or a contribution
19+
incorporated within the Licensed Material constitutes direct or
20+
contributory patent infringement, then any licenses granted to You
21+
under this license for that Licensed Material shall terminate as of
22+
the date such litigation is filed.

atomicsabi64/README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<div align="center">
2+
<img src="Arm_logo_blue_RGB.svg" />
3+
</div>
4+
5+
# C/C++ Atomics ABI for the Arm® 64-bit Architecture (AArch64)
6+
7+
8+
## About this document
9+
10+
This document describes the [Application Binary Interface for the use
11+
of code generated by compiling C/C++ atomics targeting the Arm 64-bit architecture](atomicsabi64.rst).
12+
13+
## About the license
14+
15+
As identified more fully in the [LICENSE](LICENSE) file, this project
16+
is licensed under CC-BY-SA-4.0 along with an additional patent
17+
license. The language in the additional patent license is largely
18+
identical to that in Apache-2.0 (specifically, Section 3 of Apache-2.0
19+
as reflected at https://www.apache.org/licenses/LICENSE-2.0) with two
20+
exceptions.
21+
22+
First, several changes were made related to the defined terms so as to
23+
reflect the fact that such defined terms need to align with the
24+
terminology in CC-BY-SA-4.0 rather than Apache-2.0 (e.g., changing
25+
“Work” to “Licensed Material”).
26+
27+
Second, the defensive termination clause was changed such that the
28+
scope of defensive termination applies to “any licenses granted to
29+
You” (rather than “any patent licenses granted to You”). This change
30+
is intended to help maintain a healthy ecosystem by providing
31+
additional protection to the community against patent litigation
32+
claims.
33+
34+
## Defects report
35+
36+
Please report defects in the [Atomics Application Binary Interface (ABI)
37+
for the Arm 64-bit architecture](atomicsabi64.rst) to the [issue tracker
38+
page on GitHub](https://github.com/ARM-software/abi-aa/issues).

atomicsabi64/TRADEMARK_NOTICE

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
The text of and illustrations in this document are licensed
2+
under a Creative Commons Attribution–Share Alike 4.0 International
3+
license ("CC-BY-SA-4.0”), with an additional clause on patents.
4+
The Arm trademarks featured here are registered trademarks or
5+
trademarks of Arm Limited (or its subsidiaries) in the US and/or
6+
elsewhere. All rights reserved. Please visit
7+
https://www.arm.com/company/policies/trademarks for more information
8+
about Arm’s trademarks.

0 commit comments

Comments
 (0)