aboutsummaryrefslogtreecommitdiff
path: root/asm.s
diff options
context:
space:
mode:
Diffstat (limited to 'asm.s')
-rw-r--r--asm.s3
1 files changed, 2 insertions, 1 deletions
diff --git a/asm.s b/asm.s
index bf2fd46..1ad6fed 100644
--- a/asm.s
+++ b/asm.s
@@ -31,9 +31,10 @@ __cpsie:
.syntax unified
.thumb_func
__delay:
+1:
nop
subs r0, #1
- bne __delay
+ 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
.section .text.__dmb