-
Notifications
You must be signed in to change notification settings - Fork 168
Add unwind information to external assembly #216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,41 @@ | ||
.cfi_sections .debug_frame | ||
|
||
.section .text.__basepri_max | ||
.global __basepri_max | ||
.thumb_func | ||
.cfi_startproc | ||
__basepri_max: | ||
msr BASEPRI_MAX, r0 | ||
bx lr | ||
.cfi_endproc | ||
.size __basepri_max, . - __basepri_max | ||
|
||
.section .text.__basepri_r | ||
.global __basepri_r | ||
.thumb_func | ||
.cfi_startproc | ||
__basepri_r: | ||
mrs r0, BASEPRI | ||
bx lr | ||
.cfi_endproc | ||
.size __basepri_r, . - __basepri_r | ||
|
||
.section .text.__basepri_w | ||
.global __basepri_w | ||
.thumb_func | ||
.cfi_startproc | ||
__basepri_w: | ||
msr BASEPRI, r0 | ||
bx lr | ||
.cfi_endproc | ||
.size __basepri_w, . - __basepri_w | ||
|
||
.section .text.__faultmask | ||
.global __faultmask | ||
.thumb_func | ||
.cfi_startproc | ||
__faultmask: | ||
mrs r0, FAULTMASK | ||
bx lr | ||
.cfi_endproc | ||
.size __faultmask, . - __faultmask |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,43 @@ | ||
|
||
.cfi_sections .debug_frame | ||
|
||
.section .text.__msplim_r | ||
.global __msplim_r | ||
.thumb_func | ||
.cfi_startproc | ||
__msplim_r: | ||
mrs r0, MSPLIM | ||
bx lr | ||
.cfi_endproc | ||
.size __msplim_r, . - __msplim_r | ||
|
||
.section .text.__msplim_w | ||
.global __msplim_w | ||
.thumb_func | ||
.cfi_startproc | ||
__msplim_w: | ||
msr MSPLIM, r0 | ||
bx lr | ||
.cfi_endproc | ||
.size __msplim_w, . - __msplim_w | ||
|
||
.section .text.__psplim_r | ||
.global __psplim_r | ||
.thumb_func | ||
.cfi_startproc | ||
__psplim_r: | ||
mrs r0, PSPLIM | ||
bx lr | ||
.cfi_endproc | ||
.size __psplim_r, . - __psplim_r | ||
|
||
.section .text.__psplim_w | ||
.global __psplim_w | ||
.thumb_func | ||
.cfi_startproc | ||
__psplim_w: | ||
msr PSPLIM, r0 | ||
bx lr | ||
.cfi_endproc | ||
.size __psplim_w, . - __psplim_w | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,42 @@ | ||
.cfi_sections .debug_frame | ||
|
||
.section .text.__tt | ||
.global __tt | ||
.thumb_func | ||
.cfi_startproc | ||
__tt: | ||
tt r0, r0 | ||
bx lr | ||
.cfi_endproc | ||
.size __tt, . - __tt | ||
|
||
.section .text.__ttt | ||
.global __ttt | ||
.thumb_func | ||
.cfi_startproc | ||
__ttt: | ||
ttt r0, r0 | ||
bx lr | ||
.cfi_endproc | ||
.size __ttt, . - __ttt | ||
|
||
.section .text.__tta | ||
.global __tta | ||
.thumb_func | ||
.cfi_startproc | ||
__tta: | ||
tta r0, r0 | ||
bx lr | ||
.cfi_endproc | ||
.size __tta, . - __tta | ||
|
||
|
||
.section .text.__ttat | ||
.global __ttat | ||
.thumb_func | ||
.cfi_startproc | ||
__ttat: | ||
ttat r0, r0 | ||
bx lr | ||
.cfi_endproc | ||
.size __ttat, . - __ttat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,156 +1,196 @@ | ||
.cfi_sections .debug_frame | ||
|
||
.section .text.__bkpt | ||
.global __bkpt | ||
.thumb_func | ||
.cfi_startproc | ||
__bkpt: | ||
bkpt | ||
bx lr | ||
.cfi_endproc | ||
.size __bkpt, . - __bkpt | ||
|
||
.section .text.__control_r | ||
.global __control_r | ||
.thumb_func | ||
.cfi_startproc | ||
__control_r: | ||
mrs r0, CONTROL | ||
bx lr | ||
.cfi_endproc | ||
.size __control_r, . - __control_r | ||
|
||
.section .text.__control_w | ||
.global __control_w | ||
.thumb_func | ||
.cfi_startproc | ||
__control_w: | ||
msr CONTROL, r0 | ||
bx lr | ||
.cfi_endproc | ||
.size __control_w, . - __control_w | ||
|
||
|
||
.section .text.__cpsid | ||
.global __cpsid | ||
.thumb_func | ||
.cfi_startproc | ||
__cpsid: | ||
cpsid i | ||
bx lr | ||
.cfi_endproc | ||
.size __cpsid, . - __cpsid | ||
|
||
.section .text.__cpsie | ||
.global __cpsie | ||
.thumb_func | ||
.cfi_startproc | ||
__cpsie: | ||
cpsie i | ||
bx lr | ||
.cfi_endproc | ||
.size __cpsie, . - __cpsie | ||
|
||
.section .text.__delay | ||
.global __delay | ||
.syntax unified | ||
.thumb_func | ||
.cfi_startproc | ||
__delay: | ||
1: | ||
nop | ||
subs r0, #1 | ||
bne 1b // Branch to 1 instead of __delay does not generate R_ARM_THM_JUMP8 relocation, which breaks linking on the thumbv6m-none-eabi target | ||
bx lr | ||
.cfi_endproc | ||
.size __delay, . - __delay | ||
|
||
.section .text.__dmb | ||
.global __dmb | ||
.thumb_func | ||
.cfi_startproc | ||
__dmb: | ||
dmb 0xF | ||
bx lr | ||
.cfi_endproc | ||
.size __dmb, . - __dmb | ||
|
||
.section .text.__dsb | ||
.global __dsb | ||
.thumb_func | ||
.cfi_startproc | ||
__dsb: | ||
dsb 0xF | ||
bx lr | ||
.cfi_endproc | ||
.size __dsb, . - __dsb | ||
|
||
.section .text.__isb | ||
.global __isb | ||
.thumb_func | ||
.cfi_startproc | ||
__isb: | ||
isb 0xF | ||
bx lr | ||
.cfi_endproc | ||
.size __isb, . - __isb | ||
|
||
.section .text.__msp_r | ||
.global __msp_r | ||
.thumb_func | ||
.cfi_startproc | ||
__msp_r: | ||
mrs r0, MSP | ||
bx lr | ||
.cfi_endproc | ||
.size __msp_r, . - __msp_r | ||
|
||
.section .text.__msp_w | ||
.global __msp_w | ||
.thumb_func | ||
.cfi_startproc | ||
__msp_w: | ||
msr MSP, r0 | ||
bx lr | ||
.cfi_endproc | ||
.size __msp_w, . - __msp_w | ||
|
||
.section .text.__nop | ||
.global __nop | ||
.thumb_func | ||
.cfi_startproc | ||
__nop: | ||
bx lr | ||
.cfi_endproc | ||
.size __nop, . - __nop | ||
|
||
.section .text.__primask | ||
.global __primask | ||
.thumb_func | ||
.cfi_startproc | ||
__primask: | ||
mrs r0, PRIMASK | ||
bx lr | ||
.cfi_endproc | ||
.size __primask, . - __primask | ||
|
||
.section .text.__psp_r | ||
.global __psp_r | ||
.thumb_func | ||
.cfi_startproc | ||
__psp_r: | ||
mrs r0, PSP | ||
bx lr | ||
.cfi_endproc | ||
.size __psp_r, . - __psp_r | ||
|
||
.section .text.__psp_w | ||
.global __psp_w | ||
.thumb_func | ||
.cfi_startproc | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. like |
||
__psp_w: | ||
msr PSP, r0 | ||
bx lr | ||
.cfi_endproc | ||
.size __psp_w, . - __psp_w | ||
|
||
.section .text.__sev | ||
.global __sev | ||
.thumb_func | ||
.cfi_startproc | ||
__sev: | ||
sev | ||
bx lr | ||
.cfi_endproc | ||
.size __sev, . - __sev | ||
|
||
|
||
.section .text.__udf | ||
.global __udf | ||
.thumb_func | ||
.cfi_startproc | ||
__udf: | ||
udf | ||
.cfi_endproc | ||
.size __udf, . - __udf | ||
|
||
.section .text.__wfe | ||
.global __wfe | ||
.thumb_func | ||
.cfi_startproc | ||
__wfe: | ||
wfe | ||
bx lr | ||
.cfi_endproc | ||
.size __wfe, . - __wfe | ||
|
||
|
||
.section .text.__wfi | ||
.global __wfi | ||
.thumb_func | ||
.cfi_startproc | ||
__wfi: | ||
wfi | ||
.size __wfi, . - __wfi | ||
bx lr | ||
.cfi_endproc | ||
.size __wfi, . - __wfi |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this subroutine may modify the stack pointer depending on whether MSP or PSP is currently being used so it requires a (rather complex?) register rule so let's not add CFI to it in this PR