Skip to content

Commit 5671aec

Browse files
committed
builtins.h: remove fake __bic_SR_register_on_exit definition
This definition is wrong, because the offset on the stack is not a constant. See this link for some ideas for how to actually do it: rust-embedded/wg#20 (comment)
1 parent 4259d4b commit 5671aec

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/include/libmspbuiltins/builtins.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,9 @@
1414
: : [count] "i" ((n) / 3 - 3) \
1515
)
1616

17-
#define __bic_SR_register_on_exit(bits) \
18-
__asm__ volatile ( \
19-
"bic %[b], 24(r1)\n" \
20-
: : [b] "i" (bits) \
21-
)
22-
2317
// These are fake "built-ins" for Clang: implemented in C in a trivial way, and
2418
// compiled with gcc. We do this because it is easier than implementing actual
2519
// builtins Clang calls that come from compiler-rt (few are implemented there).
2620
uint32_t mspbuiltins_mult32(uint32_t a, uint32_t b);
2721
uint16_t mspbuiltins_div16(uint16_t a, uint16_t b);
28-
2922
#endif // _MSP_BUILTINS_H

0 commit comments

Comments
 (0)