Skip to main content
formatting
Source Link
Barmar
  • 788.8k
  • 57
  • 555
  • 669

I'm trying to compile in VS Code but error appears for this line of code: void interrupt_handler_function(void) __attribute__ ((interrupt("FIQ")));

void interrupt_handler_function(void) __attribute__ ((interrupt("FIQ"))); 

error: error: x86 'interrupt' attribute only applies to functions that have only a pointer parameter optionally followed by an integer parameter

error: x86 'interrupt' attribute only applies to functions that have only a pointer parameter optionally followed by an integer parameter

Compiler is: GCC 9.4.0 x86_64-linux-gnu

Am I missing something in the interrupt declaration? Any input is much appreciated!

Tried solution in this link: clang-check using arm as a target but did not work

I'm trying to compile in VS Code but error appears for this line of code: void interrupt_handler_function(void) __attribute__ ((interrupt("FIQ")));

error: error: x86 'interrupt' attribute only applies to functions that have only a pointer parameter optionally followed by an integer parameter

Compiler is: GCC 9.4.0 x86_64-linux-gnu

Am I missing something in the interrupt declaration? Any input is much appreciated!

Tried solution in this link: clang-check using arm as a target but did not work

I'm trying to compile in VS Code but error appears for this line of code:

void interrupt_handler_function(void) __attribute__ ((interrupt("FIQ"))); 

error:

error: x86 'interrupt' attribute only applies to functions that have only a pointer parameter optionally followed by an integer parameter

Compiler is: GCC 9.4.0 x86_64-linux-gnu

Am I missing something in the interrupt declaration? Any input is much appreciated!

Tried solution in this link: clang-check using arm as a target but did not work

Source Link

error: x86 'interrupt' attribute only applies to functions that have only a pointer parameter optionally followed by an integer parameter

I'm trying to compile in VS Code but error appears for this line of code: void interrupt_handler_function(void) __attribute__ ((interrupt("FIQ")));

error: error: x86 'interrupt' attribute only applies to functions that have only a pointer parameter optionally followed by an integer parameter

Compiler is: GCC 9.4.0 x86_64-linux-gnu

Am I missing something in the interrupt declaration? Any input is much appreciated!

Tried solution in this link: clang-check using arm as a target but did not work