Skip to content

Commit 7251d36

Browse files
Per Mårtenssonkeirf
authored andcommitted
Use .thumb_func directive consistently when declaring Thumb asm functions
This is required with newer toolchains.
1 parent a985603 commit 7251d36

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/util.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ void *memcpy(void *dest, const void *src, size_t n)
4949

5050
asm (
5151
".global memcpy_fast, memset_fast\n"
52+
".thumb_func\n"
5253
"memcpy_fast:\n"
5354
" push {r4-r10}\n"
5455
"1: ldmia r1!,{r3-r10}\n"
@@ -57,6 +58,7 @@ asm (
5758
" bne 1b\n"
5859
" pop {r4-r10}\n"
5960
" bx lr\n"
61+
".thumb_func\n"
6062
"memset_fast:\n"
6163
" push {r4-r10}\n"
6264
" uxtb r5, r1\n"

0 commit comments

Comments
 (0)