Skip to content

Commit ae4f50d

Browse files
Clang defines the long_call attribute only on MIPS
1 parent f7c8334 commit ae4f50d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: cores/arduino/Reset.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
extern "C" {
2424
#endif
2525

26+
#if !defined(__clang__) || defined(__mips__)
2627
__attribute__ ((long_call, section (".ramfunc")))
28+
#else
29+
__attribute__ ((section (".ramfunc")))
30+
#endif
2731
void banzai() {
2832
// Disable all interrupts
2933
__disable_irq();

0 commit comments

Comments
 (0)