Skip to content

Commit 149081f

Browse files
Merge pull request #4572 from MicrosoftDocs/FromPublicMasterBranch
Resolve syncing conflicts from FromPublicMasterBranch to main
2 parents 43b0e1f + bd9438f commit 149081f

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

docs/build/arm64-exception-handling.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,20 @@ The unwind codes are encoded according to the table below. All unwind codes are
311311
| | 11101000: Custom stack for `MSFT_OP_TRAP_FRAME` |
312312
| | 11101001: Custom stack for `MSFT_OP_MACHINE_FRAME` |
313313
| | 11101010: Custom stack for `MSFT_OP_CONTEXT` |
314+
| | 11101011: Custom stack for `MSFT_OP_EC_CONTEXT` |
314315
| | 11101100: Custom stack for `MSFT_OP_CLEAR_UNWOUND_TO_CALL` |
315-
| | 1111xxxx: reserved |
316-
| `pac_sign_return_address` | 11111100: sign the return address in `lr` with `pacibsp` |
316+
| | 11101101: reserved |
317+
| | 11101110: reserved |
318+
| | 11101111: reserved |
319+
| | 11110xxx: reserved |
320+
| | 11111000'yyyyyyyy : reserved |
321+
| | 11111001'yyyyyyyy'yyyyyyyy : reserved |
322+
| | 11111010'yyyyyyyy'yyyyyyyy'yyyyyyyy : reserved |
323+
| | 11111011'yyyyyyyy'yyyyyyyy'yyyyyyyy'yyyyyyyy : reserved |
324+
| `pac_sign_lr` | 11111100: sign the return address in `lr` with `pacibsp` |
325+
| | 11111101: reserved |
326+
| | 11111110: reserved |
327+
| | 11111111: reserved |
317328

318329
In instructions with large values covering multiple bytes, the most significant bits are stored first. This design makes it possible to find the total size in bytes of the unwind code by looking up only the first byte of the code. Since each unwind code is exactly mapped to an instruction in a prolog or epilog, you can compute the size of the prolog or epilog. Walk from the sequence start to the end, and use a lookup table or similar device to determine the length of the corresponding opcode.
319330

0 commit comments

Comments
 (0)