Skip to content

Commit

Permalink
Merge pull request #277 from larskanis/fix-arm64-docs
Browse files Browse the repository at this point in the history
Fix mistakes in documentation on Arm64 on Windows
  • Loading branch information
olk authored Dec 26, 2024
2 parents fa35c15 + c46576a commit e4c9157
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/asm/jump_arm64_aapcs_pe_armasm.asm
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
;* ------------------------------------------------- *
;* | 0xa0| 0xa4| 0xa8| 0xac| 0xb0| 0xb4| 0xb8| 0xbc| *
;* ------------------------------------------------- *
;* | fiber data| base | limit | dealloc | *
;* | base | limit | dealloc | fiber data| *
;* ------------------------------------------------- *
;* ------------------------------------------------- *
;* | 48 | 49 | 50 | 51 | | | *
Expand Down Expand Up @@ -130,4 +130,4 @@ jump_fcontext proc

ret x4
ENDP
END
END
2 changes: 1 addition & 1 deletion src/asm/jump_arm64_aapcs_pe_armclang.S
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
* ------------------------------------------------- *
* | 0xa0| 0xa4| 0xa8| 0xac| 0xb0| 0xb4| 0xb8| 0xbc| *
* ------------------------------------------------- *
* | fiber data| base | limit | dealloc | *
* | base | limit | dealloc | fiber data| *
* ------------------------------------------------- *
* ------------------------------------------------- *
* | 48 | 49 | 50 | 51 | | | *
Expand Down
2 changes: 1 addition & 1 deletion src/asm/make_arm64_aapcs_pe_armasm.asm
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ make_fcontext proc

; save top address of context_stack as 'base'
str x3, [x0, #0xa0]
; save bottom address of context-stack as 'limit' and 'dealloction stack'
; save bottom address of context-stack as 'limit' and 'deallocation stack'
sub x3, x3, x1
stp x3, x3, [x0, #0xa8]
; save 0 as 'fiber data'
Expand Down
2 changes: 1 addition & 1 deletion src/asm/make_arm64_aapcs_pe_armclang.S
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ make_fcontext:

// save top address of context_stack as 'base'
str x3, [x0, #0xa0]
// save bottom address of context-stack as 'limit' and 'dealloction stack'
// save bottom address of context-stack as 'limit' and 'deallocation stack'
sub x3, x3, x1
stp x3, x3, [x0, #0xa8]
// save 0 as 'fiber data'
Expand Down

0 comments on commit e4c9157

Please sign in to comment.