[PATCH] D28820: Warn when calling a non interrupt function from an interrupt on ARM
KCG via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 4 14:54:04 PST 2017
kc.austin2017 added a comment.
Hi , I am looking for some helps on the issue i have in my project after this change for the compiler.
typedef void (*callback_t)(uint32_t icciar, void * context);
callback_t callee1;
void _ _attribute__((interrupt("IRQ"))) __cs3_isr_irq() {
callee1(icciar , context);
}
the above code gives me the expected error " call to function without interrupt attribute could clobber interruptee's VFP registers"
below is my attempt
===================
typedef void _ _attribute__((interrupt("IRQ"))) (*callback_t)(uint32_t icciar, void * context);
callback_t _ _attribute__((interrupt("IRQ"))) callee1;
void _ _attribute__((interrupt("IRQ"))) __cs3_isr_irq() {
callee1(icciar , context);
}
However, it is still giving me the error "" call to function without interrupt attribute could clobber interruptee's VFP registers"
What is the best way to modify the code for this compiler change ?
thanks all in advance !!
https://reviews.llvm.org/D28820
More information about the cfe-commits
mailing list