Skip to content

Commit f6b4e97

Browse files
Document __pre_init call constraints
1 parent bf037b3 commit f6b4e97

File tree

8 files changed

+5
-0
lines changed

8 files changed

+5
-0
lines changed

cortex-m-rt/asm.s

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ PreResetTrampoline:
6464
mov lr,r4
6565

6666
# run the pre-init code
67+
# use cases of __pre_init include
68+
# a) disabling an on-by-default watchdog and
69+
# b) enabling off-by-default RAM
70+
# this means it must be done before the potentially slow RAM init code below is executed, and RAM
71+
# must not be accessed before this call
6772
bl __pre_init
6873

6974
# the call above clobbers LR, but tools may expect LR to be 0xFFFFFFFF when reaching the first
16 Bytes
Binary file not shown.
16 Bytes
Binary file not shown.
16 Bytes
Binary file not shown.
16 Bytes
Binary file not shown.
-20 Bytes
Binary file not shown.
16 Bytes
Binary file not shown.
16 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)