Browse Source

cpu/x86/x86_interrupts.c: Add __attribute__((used)) to isr functions

pr/spi.typo
Joakim Nohlgård 8 years ago committed by Kaspar Schleiser
parent
commit
16469543db
  1. 6
      cpu/x86/x86_interrupts.c

6
cpu/x86/x86_interrupts.c

@ -169,7 +169,7 @@ static void continue_after_intr(void)
}
static unsigned in_intr_handler = 0, old_intr;
void x86_int_handler(void)
__attribute__((used)) void x86_int_handler(void)
{
switch (in_intr_handler++) {
case 0:
@ -213,7 +213,7 @@ void x86_int_handler(void)
__builtin_unreachable();
}
void ASM_FUN_ATTRIBUTES NORETURN x86_int_entry(void)
__attribute__((used)) void ASM_FUN_ATTRIBUTES NORETURN x86_int_entry(void)
{
__asm__ volatile ("mov %eax, (4*0 + x86_interrupted_ctx)");
__asm__ volatile ("mov %ecx, (4*1 + x86_interrupted_ctx)");
@ -239,7 +239,7 @@ void ASM_FUN_ATTRIBUTES NORETURN x86_int_entry(void)
__builtin_unreachable();
}
void ASM_FUN_ATTRIBUTES NORETURN x86_int_exit(void)
__attribute__((used)) void ASM_FUN_ATTRIBUTES NORETURN x86_int_exit(void)
{
__asm__ volatile ("mov (4*0 + x86_interrupted_ctx), %eax");
__asm__ volatile ("mov (4*1 + x86_interrupted_ctx), %ecx");

Loading…
Cancel
Save