Skip to content

Commit 22150c5

Browse files
authored
Document which registers are used for the async context on x86-64/ARM64. (#64947)
> LGTM (and you've saved me a [very small] job; I was going to make that change when I had a spare moment). There was a discussion yesterday where we realized that this wasn't actually documented, so I figured a drive-by fix to documentation was within my abilities. 😇
1 parent 4f8808d commit 22150c5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/ABI/CallConvSummary.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ Register usage
5050
+-----------+----------------------------------+----------+----------+----------+
5151
| ``r13`` | Callee-saved register | | | ``self`` |
5252
+-----------+----------------------------------+----------+----------+----------+
53-
| ``r14`` | Callee-saved register | | | |
53+
| ``r14`` | Callee-saved register | | | Async |
54+
| | | | | context |
5455
+-----------+----------------------------------+----------+----------+----------+
5556
| ``r15`` | Callee-saved register | | | |
5657
| | (other platforms use as GOT ptr) | | | |
@@ -152,7 +153,10 @@ Register usage
152153
| ``x21`` | | Callee-saved register | | | Error |
153154
| | | | | | return |
154155
+----------+---------+-------------------------+----------+----------+----------+
155-
| ``x22``- | | Callee-saved registers | | | |
156+
| ``x22`` | | Callee-saved register | | | Async |
157+
| | | | | | context |
158+
+----------+---------+-------------------------+----------+----------+----------+
159+
| ``x23``- | | Callee-saved registers | | | |
156160
| ``x28`` | | | | | |
157161
+----------+---------+-------------------------+----------+----------+----------+
158162
| ``x29`` | ``fp`` | Frame pointer | | | |

0 commit comments

Comments
 (0)