-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
108: remove build dependency on arm-none-eabi-gcc r=adamgreig a=japaric by shipping pre-assembled object files. This is the same approach as the one used in #95 r? @rust-embedded/cortex-m (anyone) Co-authored-by: Jorge Aparicio <jorge@japaric.io>
- Loading branch information
Showing
40 changed files
with
282 additions
and
226 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -2,4 +2,7 @@ | |
*.rs.bk | ||
.#* | ||
Cargo.lock | ||
bin/*.after | ||
bin/*.before | ||
bin/*.o | ||
target |
This file contains 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 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 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.section .text.__basepri_max_cm7_r0p1 | ||
.global __basepri_max_cm7_r0p1 | ||
.syntax unified | ||
.thumb_func | ||
__basepri_max_cm7_r0p1: | ||
mrs r1, PRIMASK | ||
cpsid i | ||
tst.w r1, #1 | ||
msr BASEPRI_MAX, r0 | ||
it ne | ||
bxne lr | ||
cpsie i | ||
bx lr | ||
|
||
.section .text.__basepri_w_cm7_r0p1 | ||
.global __basepri_w_cm7_r0p1 | ||
.syntax unified | ||
.thumb_func | ||
__basepri_w_cm7_r0p1: | ||
mrs r1, PRIMASK | ||
cpsid i | ||
tst.w r1, #1 | ||
msr BASEPRI, r0 | ||
it ne | ||
bxne lr | ||
cpsie i | ||
bx lr |
This file contains 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.section .text.__basepri_max | ||
.global __basepri_max | ||
.thumb_func | ||
__basepri_max: | ||
msr BASEPRI_MAX, r0 | ||
bx lr | ||
|
||
.section .text.__basepri_r | ||
.global __basepri_r | ||
.thumb_func | ||
__basepri_r: | ||
mrs r0, BASEPRI | ||
bx lr | ||
|
||
.section .text.__basepri_w | ||
.global __basepri_w | ||
.thumb_func | ||
__basepri_w: | ||
msr BASEPRI, r0 | ||
bx lr | ||
|
||
.section .text.__faultmask | ||
.global __faultmask | ||
.thumb_func | ||
__faultmask: | ||
mrs r0, FAULTMASK | ||
bx lr |
This file contains 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 |
---|---|---|
@@ -0,0 +1,120 @@ | ||
.section .text.__bkpt | ||
.global __bkpt | ||
.thumb_func | ||
__bkpt: | ||
bkpt | ||
bx lr | ||
|
||
.section .text.__control | ||
.global __control | ||
.thumb_func | ||
__control: | ||
mrs r0, CONTROL | ||
bx lr | ||
|
||
.section .text.__cpsid | ||
.global __cpsid | ||
.thumb_func | ||
__cpsid: | ||
cpsid i | ||
bx lr | ||
|
||
.section .text.__cpsie | ||
.global __cpsie | ||
.thumb_func | ||
__cpsie: | ||
cpsie i | ||
bx lr | ||
|
||
.section .text.__delay | ||
.global __delay | ||
.syntax unified | ||
.thumb_func | ||
__delay: | ||
nop | ||
subs r0, #1 | ||
bne __delay | ||
bx lr | ||
|
||
.section .text.__dmb | ||
.global __dmb | ||
.thumb_func | ||
__dmb: | ||
dmb 0xF | ||
bx lr | ||
|
||
.section .text.__dsb | ||
.global __dsb | ||
.thumb_func | ||
__dsb: | ||
dsb 0xF | ||
bx lr | ||
|
||
.section .text.__isb | ||
.global __isb | ||
.thumb_func | ||
__isb: | ||
isb 0xF | ||
bx lr | ||
|
||
.section .text.__msp_r | ||
.global __msp_r | ||
.thumb_func | ||
__msp_r: | ||
mrs r0, MSP | ||
bx lr | ||
|
||
.section .text.__msp_w | ||
.global __msp_w | ||
.thumb_func | ||
__msp_w: | ||
msr MSP, r0 | ||
bx lr | ||
|
||
.section .text.__nop | ||
.global __nop | ||
.thumb_func | ||
__nop: | ||
bx lr | ||
|
||
.section .text.__primask | ||
.global __primask | ||
.thumb_func | ||
__primask: | ||
mrs r0, PRIMASK | ||
bx lr | ||
|
||
.section .text.__psp_r | ||
.global __psp_r | ||
.thumb_func | ||
__psp_r: | ||
mrs r0, PSP | ||
bx lr | ||
|
||
.section .text.__psp_w | ||
.global __psp_w | ||
.thumb_func | ||
__psp_w: | ||
msr PSP, r0 | ||
bx lr | ||
|
||
.section .text.__sev | ||
.global __sev | ||
.thumb_func | ||
__sev: | ||
sev | ||
bx lr | ||
|
||
.section .text.__wfe | ||
.global __wfe | ||
.thumb_func | ||
__wfe: | ||
wfe | ||
bx lr | ||
|
||
.section .text.__wfi | ||
.global __wfi | ||
.thumb_func | ||
__wfi: | ||
wfi | ||
bx lr |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.