File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,15 +49,15 @@ FpuTrampoline:
49
49
.cfi_endproc
50
50
.size FpuTrampoline , . - FpuTrampoline
51
51
52
- # ARMv6 - M leaves LR in an unknown state on Reset
53
- # this trampoline sets LR before it's pushed onto the stack by Reset
54
52
. section .PreResetTrampoline , "ax"
55
53
. global PreResetTrampoline
56
54
# .type and .thumb_func are both required ; otherwise its Thumb bit does not
57
55
# get set and an invalid vector table is generated
58
56
.type PreResetTrampoline , %function
59
57
.thumb_func
60
58
.cfi_startproc
59
+ # Main entry point. This initializes RAM and invokes __pre_init , which cannot be done in Rust code
60
+ # without invoking UB. It then jumps to the Rust `Reset` function.
61
61
PreResetTrampoline:
62
62
# set LR to the initial value used by the ARMv7 - M (0xFFFF_FFFF)
63
63
ldr r4 , = 0xffffffff
You can’t perform that action at this time.
0 commit comments