Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/interrupt.c

    rb2fa1204 r4b0206c  
    4545#include <mm/as.h>
    4646#include <arch.h>
    47 #include <arch/asm.h>
    4847#include <proc/scheduler.h>
    4948#include <proc/thread.h>
     
    5554#include <symtab.h>
    5655#include <stacktrace.h>
     56#include <smp/smp_call.h>
    5757
    5858/*
     
    161161        trap_virtual_eoi();
    162162        tlb_shootdown_ipi_recv();
     163}
     164
     165static void arch_smp_call_ipi_recv(unsigned int n, istate_t *istate)
     166{
     167        trap_virtual_eoi();
     168        smp_call_ipi_recv();
    163169}
    164170#endif
     
    216222        }
    217223       
    218         exc_register(0, "de_fault", true, (iroutine_t) de_fault);
    219         exc_register(7, "nm_fault", true, (iroutine_t) nm_fault);
    220         exc_register(12, "ss_fault", true, (iroutine_t) ss_fault);
    221         exc_register(13, "gp_fault", true, (iroutine_t) gp_fault);
     224        exc_register(VECTOR_DE, "de_fault", true, (iroutine_t) de_fault);
     225        exc_register(VECTOR_NM, "nm_fault", true, (iroutine_t) nm_fault);
     226        exc_register(VECTOR_SS, "ss_fault", true, (iroutine_t) ss_fault);
     227        exc_register(VECTOR_GP, "gp_fault", true, (iroutine_t) gp_fault);
    222228       
    223229#ifdef CONFIG_SMP
    224230        exc_register(VECTOR_TLB_SHOOTDOWN_IPI, "tlb_shootdown", true,
    225231            (iroutine_t) tlb_shootdown_ipi);
     232        exc_register(VECTOR_SMP_CALL_IPI, "smp_call", true,
     233                (iroutine_t) arch_smp_call_ipi_recv);
    226234#endif
    227235}
Note: See TracChangeset for help on using the changeset viewer.