Ignore:
File:
1 edited

Legend:

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

    r9d58539 r4b0206c  
    5454#include <symtab.h>
    5555#include <stacktrace.h>
     56#include <smp/smp_call.h>
     57#include <proc/task.h>
    5658
    5759/*
     
    170172        tlb_shootdown_ipi_recv();
    171173}
     174
     175static void arch_smp_call_ipi_recv(unsigned int n, istate_t *istate)
     176{
     177        trap_virtual_eoi();
     178        smp_call_ipi_recv();
     179}
    172180#endif
    173181
     
    221229        }
    222230       
    223         exc_register(0, "de_fault", true, (iroutine_t) de_fault);
    224         exc_register(7, "nm_fault", true, (iroutine_t) nm_fault);
    225         exc_register(12, "ss_fault", true, (iroutine_t) ss_fault);
    226         exc_register(13, "gp_fault", true, (iroutine_t) gp_fault);
    227         exc_register(19, "simd_fp", true, (iroutine_t) simd_fp_exception);
     231        exc_register(VECTOR_DE, "de_fault", true, (iroutine_t) de_fault);
     232        exc_register(VECTOR_NM, "nm_fault", true, (iroutine_t) nm_fault);
     233        exc_register(VECTOR_SS, "ss_fault", true, (iroutine_t) ss_fault);
     234        exc_register(VECTOR_GP, "gp_fault", true, (iroutine_t) gp_fault);
     235        exc_register(VECTOR_XM, "simd_fp", true, (iroutine_t) simd_fp_exception);
    228236       
    229237#ifdef CONFIG_SMP
    230238        exc_register(VECTOR_TLB_SHOOTDOWN_IPI, "tlb_shootdown", true,
    231239            (iroutine_t) tlb_shootdown_ipi);
     240        exc_register(VECTOR_SMP_CALL_IPI, "smp_call", true,
     241            (iroutine_t) arch_smp_call_ipi_recv);
    232242#endif
    233243}
Note: See TracChangeset for help on using the changeset viewer.